/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: serif;
}

/* MAIN SECTION */
.contact-section {
    display: flex;
    min-height: 80vh;
    /* background-color: #e1a820; */
    background-image: linear-gradient(to right, white, #e1a820);
}

/* ======================
   RIGHT - IMAGES
====================== */
.image-grid {
    width: 50%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
    gap: 15px;
    padding: 50px;
}

/* IMAGE BOX */
.img-box {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 2px 8px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid black;
}

/* IMAGE */
.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s;
}

/* HOVER EFFECT */
.img-box:hover img {
    transform: scale(1.1);
    filter: brightness(0.9);
}

/* OVERLAY */
.img-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.img-box:hover::after {
    background: rgba(0, 0, 0, 0.2);
}

/* STAGGER DESIGN */
.image-grid .img-box:nth-child(1),
.image-grid .img-box:nth-child(3) {
    grid-row: span 2;
}

/* ======================
   LEFT - FORM
====================== */
#fill {
    width: 50%;
    display: flex;
    justify-content: left;
    align-items: left;
    padding: 40px;
    background-color: transparent;
    text-align: left;
}

/* FORM */
#fill form {
    width: 100%;
    max-width: 550px;
    background: #fff;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: transparent;
}

/* LABEL
#fill form label {
    font-weight: 500;
    color: #333;
} */

/* INPUTS */
#fill form input,
#fill form textarea {
    width: 100%;
    padding: 14px 14px;
    border: 1px solid #000000;
    border-radius: 10px;
    outline: none;
    transition: 0.3s;
    font-family: serif;
}

/* FOCUS */
#fill form input:focus,
#fill form textarea:focus {
    border-color: #1e384c;
    box-shadow: 0 0 6px rgba(30, 56, 76, 0.2);
}

/* ======================
   MOBILE NUMBER BOX (+91)
====================== */
.mobile-box {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    font-family: serif;
        color: black;
}

.mobile-box span {
    background: #1e384c;
    color: white;
    padding: 14px 14px;
    font-weight: 500;
}

.mobile-box input {
    border: none;
    flex: 1;
    padding: 12px 14px;
    outline: none;
    font-family: serif;
    color: black;
}

.mobile-box:focus-within {
    border-color: #1e384c;
    box-shadow: 0 0 6px rgba(30, 56, 76, 0.2);
}

#message {
    height: 15vh;
}
/* ======================
   SUBMIT BUTTON
====================== */
.form-button {
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #1e384c, #2e5d78);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* .form-button {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
} */

.form-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.form-button:active {
    transform: scale(0.98);
}

/* ======================
   RESPONSIVE 📱
====================== */

/* TABLET */
@media (max-width: 992px) {
    .contact-section {
        flex-direction: column;
        background-image: linear-gradient(to bottom, white, #e1a820);
    }

    .image-grid {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
        padding: 20px;
    }

    #fill {
        width: 100%;
        padding: 30px 15px;
    }
}

/* MOBILE */
@media (max-width: 576px) {
    .contact-section {
        background-image: linear-gradient(to bottom, white, #e1a820);
    }

    .image-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }

    .image-grid .img-box {
        grid-row: auto !important;
    }

    #fill form {
        padding: 20px;
    }
}

/* MODERN WHITE TEXT DESIGN */
/* H2 DESIGN */
#fill h2 {
    font-size: 45px;
    font-weight: 700;
    color: #1e384c;
    letter-spacing: 1px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    text-align: center;
    font-family: 'Times New Roman', Times, serif;
}

/* Stylish underline effect */
#fill h2::after {
    content: "";
    width: 60px;
    height: 3px;
    background: #e1a820;
    /* accent color */
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    border-radius: 5px;
}

/* PARAGRAPH DESIGN */
#fill p {
    font-size: 16px;
    color: #1e384c;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Optional hover effect for modern feel */
#fill h2:hover {
    color: #e1a820;
    transition: 0.3s ease;
}

#fill p:hover {
    opacity: 1;
    transition: 0.3s ease;
}
/* POPUP BACKGROUND */
.popup-box{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.6);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

/* ACTIVE */
.popup-box.active{
    display:flex;
}

/* POPUP CARD */
.popup-content{
    background:rgba(255,255,255,0.08);
    backdrop-filter:blur(15px);
    padding:40px;
    border-radius:20px;
    text-align:center;
    color:#fff;
    width:320px;
}

/* BUTTON */
.popup-content button{
    margin-top:20px;
    padding:10px 20px;
    border:none;
    background:#22c55e;
    color:#000;
    border-radius:8px;
    cursor:pointer;
}