/* ==========================================================================
   Municipality of Abuyog
   Libreng Sakay Online Registration
   Honeycomb / Bee Inspired Theme
   ========================================================================== */

:root {
    --primary: #c58b00;
    --primary-dark: #8d6300;
    --primary-light: #f7d774;
    --primary-soft: rgba(197, 139, 0, 0.1);

    --secondary: #2d2d2d;

    --success: #4caf50;
    --danger: #d9534f;

    --card-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    --card-hover-shadow: 0 18px 40px rgba(197, 139, 0, 0.18);

    --transition-fast: 0.25s ease;
    --transition: 0.35s ease;

    --border-radius: 1rem;
}

/* ====================================================== */
/* BODY */
/* ====================================================== */

body {
    min-height: 100vh;

    display: flex;

    flex-direction: column;

    background:
        linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)),
        url("https://www.transparenttextures.com/patterns/honey-im-subtle.png");

    font-family: "Segoe UI", Roboto, Arial, sans-serif;

    color: #333;
}

main {
    flex: 1;
}

/* ====================================================== */
/* HERO */
/* ====================================================== */

.hero-banner {
    position: relative;

    overflow: hidden;

    color: white;

    background:
        linear-gradient(
            135deg,
            rgba(197, 139, 0, 0.96),
            rgba(141, 99, 0, 0.94)
        ),
        url("https://images.unsplash.com/photo-1471193945509-9ad0617afabf?auto=format&fit=crop&w=1600&q=80");

    background-size: cover;

    background-position: center;
}

.hero-banner::before {
    content: "";

    position: absolute;

    inset: 0;

    opacity: 0.08;

    background-image: radial-gradient(
        circle at 25px 25px,
        #fff 3px,
        transparent 3px
    );

    background-size: 45px 45px;
}

.hero-content {
    position: relative;

    z-index: 2;
}

.hero-logo {
    width: 64px;

    height: 64px;

    object-fit: cover;

    background: white;

    padding: 5px;

    border-radius: 50%;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ====================================================== */
/* CARDS */
/* ====================================================== */

.card {
    border: none;

    border-radius: var(--border-radius);

    box-shadow: var(--card-shadow);
}

.card-header {
    background: #fff8e5;
}

/* ====================================================== */
/* CATEGORY */
/* ====================================================== */

.category-card {
    cursor: pointer;

    overflow: hidden;

    border: 2px solid #f3e7b0 !important;

    transition: all var(--transition);
}

.category-card::before {
    content: "";

    display: block;

    height: 6px;

    background: linear-gradient(90deg, var(--primary), #ffd24c);
}

.category-card:hover {
    transform: translateY(-8px);

    box-shadow: var(--card-hover-shadow);

    border-color: var(--primary) !important;
}

.category-card.selected {
    border-color: var(--primary) !important;

    background: #fff8e5;

    box-shadow:
        0 0 0 4px rgba(197, 139, 0, 0.18),
        var(--card-hover-shadow);
}

.category-icon {
    width: 80px;

    height: 80px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #fff2c7;
}

.category-icon i {
    font-size: 2.75rem;

    color: var(--primary);

    transition: transform 0.3s;
}

.category-card:hover .category-icon i,
.category-card.selected .category-icon i {
    transform: scale(1.15);
}

/* ====================================================== */
/* BUTTONS */
/* ====================================================== */

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));

    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d89b00, #8d6300);
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(197, 139, 0, 0.25);
}

/* ====================================================== */
/* FORM */
/* ====================================================== */

.form-control,
.form-select {
    border-radius: 0.75rem;

    border-color: #e4d9a2;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);

    box-shadow: 0 0 0 0.25rem rgba(197, 139, 0, 0.18);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger);
}

/* ====================================================== */
/* FILE PREVIEW */
/* ====================================================== */

#preview-thumb img {
    width: 60px;

    height: 60px;

    object-fit: cover;

    border-radius: 0.75rem;
}

.pdf-icon {
    width: 60px;

    height: 60px;

    border-radius: 0.75rem;

    background: #fff8e5;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #c62828;

    font-size: 2rem;
}

/* ====================================================== */
/* SKELETON */
/* ====================================================== */

/* ==========================================================
   Skeleton Loading
========================================================== */

.skeleton {
    position: relative;
    overflow: hidden;
    background: #f2f3f5;
}

.skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.75),
        transparent
    );
    animation: skeleton-loading 1.35s infinite;
}

.skeleton-circle {
    border-radius: 50%;
}

.skeleton-text {
    border-radius: 8px;
}

@keyframes skeleton-loading {
    100% {
        transform: translateX(100%);
    }
}

/* ====================================================== */
/* FADE */
/* ====================================================== */

.fade-in {
    animation: fadeIn 0.45s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;

        transform: translateY(15px);
    }

    to {
        opacity: 1;

        transform: none;
    }
}

.fade-out {
    animation: fadeOut 0.35s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;

        transform: translateY(-10px);
    }
}

/* ====================================================== */
/* ALERT */
/* ====================================================== */

.alert-info {
    background: #fff7d6;

    border: 1px solid #f0da7a;

    color: #6f5600;
}

/* ====================================================== */
/* MODAL */
/* ====================================================== */

.modal-content {
    border: none;

    border-radius: 1rem;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));

    color: white;
}

/* ====================================================== */
/* FOOTER */
/* ====================================================== */

footer {
    background: #fffdf7;
}

/* ====================================================== */
/* CHECKBOX */
/* ====================================================== */

#consent {
    width: 1.25rem;

    height: 1.25rem;
}

/* ====================================================== */
/* MOBILE */
/* ====================================================== */

@media (max-width: 576px) {
    .hero-logo {
        width: 52px;
        height: 52px;
    }

    .category-icon {
        width: 65px;
        height: 65px;
    }

    .category-icon i {
        font-size: 2rem;
    }
}

/* ====================================================== */
/* ACCESSIBILITY */
/* ====================================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;

        transition: none !important;
    }
}
