/* =========================================================
   MYNUKKAD - ADD FESTIVAL
   Traditional Maharashtra Theme
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;

    color: #38251d;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(181, 61, 42, 0.035),
            transparent 25%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(207, 143, 37, 0.04),
            transparent 25%
        ),
        #f8f1df;

    line-height: 1.7;
}


/* =========================================================
   HEADER
========================================================= */

.festival-header {
    background:
        linear-gradient(
            135deg,
            #4d1515,
            #681c18 50%,
            #42100f
        );

    color: #fff8e7;

    padding: 14px 0;

    border-bottom: 5px solid #d49a2a;

    box-shadow:
        0 5px 20px rgba(64, 25, 15, 0.25);

    position: relative;
}

.festival-header::after {
    content: "✦  ❖  ✦  ❖  ✦  ❖  ✦";

    position: absolute;

    bottom: -8px;

    left: 0;
    right: 0;

    text-align: center;

    color: rgba(255, 210, 100, 0.3);

    letter-spacing: 18px;

    font-size: 14px;
}

.header-container {
    width: 92%;
    max-width: 1450px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    position: relative;

    z-index: 2;
}


/* =========================================================
   BRAND
========================================================= */

.brand-section {
    min-width: 220px;

    display: flex;

    align-items: center;

    gap: 12px;
}

.brand-icon {
    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #d49a2a;

    color: #4d1515;

    border-radius: 50%;

    border: 3px solid #f5d98a;

    font-size: 24px;
}

.brand-section h1 {
    font-family: 'Playfair Display', serif;

    font-size: 23px;

    font-weight: 800;
}

.brand-section p {
    color: #efd8a5;

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 1px;
}


/* =========================================================
   HEADER TITLE
========================================================= */

.header-title {
    flex: 1;

    text-align: center;
}

.header-title span {
    color: #e8b84b;

    font-family: 'Noto Sans Devanagari', sans-serif;

    font-size: 14px;

    font-weight: 700;
}

.header-title h2 {
    font-family: 'Playfair Display', serif;

    font-size: 30px;

    color: #fff5d5;
}

.header-title p {
    color: #e4cfa5;

    font-size: 11px;
}


/* =========================================================
   HEADER BUTTON
========================================================= */

.header-actions {
    min-width: 120px;

    display: flex;

    justify-content: flex-end;
}

.header-btn {
    padding: 9px 17px;

    border: 1px solid #e5bd62;

    border-radius: 4px;

    background: transparent;

    color: #f8e5b3;

    font-family: 'Poppins', sans-serif;

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.3s;
}

.header-btn:hover {
    background: #d49a2a;

    color: #4d1515;
}


/* =========================================================
   PAGE HERO
========================================================= */

.page-hero {
    min-height: 330px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            #641b18,
            #8a291f
        );

    position: relative;

    overflow: hidden;

    border-bottom: 1px solid #d49a2a;
}

.page-hero::before {
    content: "❖";

    position: absolute;

    left: 7%;

    top: 35px;

    color: rgba(244, 204, 110, 0.1);

    font-size: 160px;
}

.page-hero::after {
    content: "✦";

    position: absolute;

    right: 9%;

    bottom: 25px;

    color: rgba(244, 204, 110, 0.1);

    font-size: 150px;
}

.hero-content {
    position: relative;

    z-index: 2;

    width: 92%;

    max-width: 850px;
}

.hero-label {
    color: #f0c86b;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 3px;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;

    color: #fff3cf;

    font-size: clamp(40px, 5vw, 62px);

    margin: 12px 0;
}

.hero-content p {
    max-width: 650px;

    margin: auto;

    color: #ead8b4;

    font-size: 13px;

    line-height: 1.9;
}

.decorative-symbol {
    color: #e1b34f;

    font-size: 18px;

    letter-spacing: 10px;

    margin-top: 18px;
}


/* =========================================================
   MAIN CONTAINER
========================================================= */

.add-festival-container {
    width: 92%;

    max-width: 1100px;

    margin: auto;

    padding: 65px 0;
}


/* =========================================================
   FORM SECTION
========================================================= */

.form-section {
    background: #fffaf0;

    border: 1px solid #ddc99b;

    padding: 35px;

    margin-bottom: 30px;

    box-shadow:
        0 7px 20px rgba(77, 35, 20, 0.06);

    position: relative;
}

.form-section::before {
    content: "❖";

    position: absolute;

    top: 12px;

    right: 17px;

    color: #d49a2a;

    font-size: 15px;
}


/* =========================================================
   SECTION TITLE
========================================================= */

.section-title {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 30px;

    padding-bottom: 18px;

    border-bottom: 1px solid #e6d8b9;
}

.section-title > span {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #a52a21;

    color: #fff3cf;

    border-radius: 50%;

    font-family: 'Playfair Display', serif;

    font-size: 15px;

    font-weight: 700;
}

.section-title small {
    color: #a52a21;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 2px;
}

.section-title h2 {
    color: #4d1515;

    font-family: 'Playfair Display', serif;

    font-size: 27px;

    line-height: 1.3;
}


/* =========================================================
   FORM GRID
========================================================= */

.form-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 22px;
}

.full-width {
    grid-column: 1 / -1;
}


/* =========================================================
   FORM GROUP
========================================================= */

.form-group {
    display: flex;

    flex-direction: column;
}

.form-group label {
    color: #5a211b;

    font-size: 12px;

    font-weight: 700;

    margin-bottom: 7px;
}

.form-group label span {
    color: #a52a21;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    border: 1px solid #d7c6a0;

    border-radius: 3px;

    background: #fffdf8;

    color: #49352b;

    font-family: 'Poppins', sans-serif;

    font-size: 12px;

    outline: none;

    transition: 0.25s;
}

.form-group input,
.form-group select {
    height: 45px;

    padding: 0 13px;
}

.form-group textarea {
    padding: 12px 13px;

    resize: vertical;

    min-height: 120px;

    line-height: 1.7;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a4937e;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #a52a21;

    background: #fffefa;

    box-shadow:
        0 0 0 3px rgba(165, 42, 33, 0.07);
}


/* =========================================================
   IMAGE UPLOAD
========================================================= */

.image-upload-area {
    text-align: center;

    border: 2px dashed #d7c196;

    background: #fcf6e8;

    padding: 45px 25px;

    border-radius: 3px;
}

.upload-icon {
    width: 70px;
    height: 70px;

    margin: auto;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f1e1bd;

    border: 1px solid #d3b66e;

    font-size: 32px;
}

.image-upload-area h3 {
    font-family: 'Playfair Display', serif;

    color: #4d1515;

    font-size: 23px;

    margin-top: 15px;
}

.image-upload-area p {
    color: #796653;

    font-size: 11px;

    margin: 5px 0 18px;
}

.upload-btn {
    display: inline-block;

    padding: 10px 20px;

    background: #a52a21;

    color: #fff2ce;

    border-radius: 3px;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.3s;
}

.upload-btn:hover {
    background: #7f1e19;

    transform: translateY(-2px);
}


/* =========================================================
   IMAGE PREVIEW
========================================================= */

.image-preview-container {
    display: none;

    max-width: 500px;

    margin: 25px auto 0;

    padding: 12px;

    background: #fffaf0;

    border: 1px solid #d9c69e;
}

.image-preview {
    display: block;

    width: 100%;

    max-height: 300px;

    object-fit: contain;

    background: #eee5d2;
}

.remove-image-btn {
    margin-top: 10px;

    padding: 7px 14px;

    border: 1px solid #a52a21;

    background: transparent;

    color: #a52a21;

    border-radius: 3px;

    font-family: 'Poppins', sans-serif;

    font-size: 10px;

    font-weight: 600;

    cursor: pointer;
}

.remove-image-btn:hover {
    background: #a52a21;

    color: #fff;
}


/* =========================================================
   FORM ACTIONS
========================================================= */

.form-actions {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    padding: 10px 0 25px;
}

.form-actions button {
    padding: 12px 25px;

    border-radius: 3px;

    font-family: 'Poppins', sans-serif;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.3s;
}

.cancel-btn {
    background: transparent;

    color: #7d332c;

    border: 1px solid #b87b6e;
}

.cancel-btn:hover {
    background: #f2dfd9;
}

.reset-btn {
    background: #eee4d0;

    color: #604a39;

    border: 1px solid #d3c09d;
}

.reset-btn:hover {
    background: #e5d7b9;
}

.save-btn {
    background: #a52a21;

    color: #fff3cf;

    border: 1px solid #8c211b;

    box-shadow:
        0 5px 14px rgba(100, 25, 20, 0.15);
}

.save-btn:hover {
    background: #7f1e19;

    transform: translateY(-2px);
}

.save-btn span {
    color: #e7b94e;

    margin-right: 5px;
}


/* =========================================================
   MESSAGE
========================================================= */

.message-box {
    display: none;

    padding: 14px 18px;

    margin-bottom: 30px;

    border-radius: 3px;

    text-align: center;

    font-size: 12px;

    font-weight: 600;
}

.message-box.success {
    display: block;

    background: #e8f3e7;

    color: #28652d;

    border: 1px solid #b9d6b7;
}

.message-box.error {
    display: block;

    background: #f7e3df;

    color: #8a241c;

    border: 1px solid #dfb3ac;
}


/* =========================================================
   FOOTER
========================================================= */

.festival-footer {
    background: #42100f;

    color: #fff4d3;

    padding: 45px 4% 20px;

    border-top: 5px solid #d49a2a;
}

.footer-content {
    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 50px;
}

.footer-content h3 {
    color: #e6b84f;

    font-family: 'Playfair Display', serif;

    font-size: 25px;
}

.footer-content h4 {
    color: #e6b84f;

    font-family: 'Playfair Display', serif;

    font-size: 17px;

    margin-bottom: 7px;
}

.footer-content p {
    color: #d7c5a1;

    font-size: 11px;
}

.footer-bottom {
    max-width: 1100px;

    margin: 30px auto 0;

    padding-top: 18px;

    border-top:
        1px solid rgba(232, 184, 79, 0.2);

    text-align: center;

    color: #bca986;

    font-size: 10px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 850px) {

    .header-container {
        flex-wrap: wrap;
    }

    .header-title {
        order: 3;

        flex-basis: 100%;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: auto;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .header-container {
        flex-direction: column;

        text-align: center;
    }

    .brand-section {
        justify-content: center;
    }

    .header-actions {
        justify-content: center;
    }

    .page-hero {
        min-height: 300px;
    }

    .hero-content h1 {
        font-size: 39px;
    }

    .add-festival-container {
        width: 94%;

        padding: 40px 0;
    }

    .form-section {
        padding: 23px 18px;
    }

    .section-title h2 {
        font-size: 23px;
    }

    .section-title > span {
        width: 37px;
        height: 37px;
    }

    .form-actions {
        flex-direction: column;

        width: 100%;
    }

    .form-actions button {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;

        text-align: center;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .hero-content h1 {
        font-size: 32px;
    }

    .image-upload-area {
        padding: 35px 15px;
    }

    .section-title {
        gap: 10px;
    }

}