@import url('root.css');
body {
    background: linear-gradient(rgba(36, 36, 36, 0.5), rgba(255, 255, 255, 0.5)), url('../images/flower-bg3.jpg') no-repeat center center fixed !important;
    background-size: cover;
    color: var(--8);
    font-family: var(--garet), sans-serif;
    overflow-x: hidden;
}

.header{
    margin-top: -200px !important;
    display: flex;
    justify-content: center;
}

.contact-container {
    height: auto;
    padding-left: 70px;
    padding-right: 70px;
    margin-bottom: 90px !important;
    margin-top: -150px !important;
    gap: 10px;
    align-items: start;
    display: flex;
    justify-content: center;
}

.contact-form-container {
    background-color: #ffffffbb;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form-container h2 {
    font-family: var(--garet), sans-serif;
    color: var(--8);
    margin-bottom: 20px;
    text-align: center;
    font-size: 50px;
}

/* Improved card visuals for contact blocks */
.contact-details,
.contact-form {
    padding: 30px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    box-shadow: 0 10px 30px rgba(24, 39, 54, 0.12);
    border: 1px solid rgba(28, 31, 33, 0.06);
    max-width: 600px !important;
}

.contact-details p {
    margin-bottom: 12px;
    color: var(--9);
    font-size: 1.1rem;
    font-family: var(--poppins), sans-serif;
}

/* Center content in the left card */
.contact-details{
    text-align: center;
}
.contact-details .info-card{
    justify-content: center;
}

/* info-card for email/phone */
.info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin: 10px 0;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(241, 243, 247, 0.9), rgba(255, 255, 255, 0.9));
    border: 1px solid rgba(28, 31, 33, 0.04);
}

.info-card .icon {
    font-size: 1.35rem;
    color: var(--3);
}

.contact-form form label, .contact-form form button{
    font-family: var(--poppins), sans-serif;
}

.info-card .text {
    color: var(--8);
    font-weight: 600;
    font-family: var(--poppins), sans-serif;
}

/* Form controls */
.form-control {
    border-radius: 12px;
    border: 1px solid rgba(28, 31, 33, 0.12);
    padding: 12px 14px;
    box-shadow: none;
    transition: box-shadow .18s ease, border-color .18s ease, transform .12s ease;
}

.form-control:focus {
    border-color: var(--14);
    box-shadow: 0 6px 18px rgba(28, 152, 237, 0.08);
    outline: none;
    transform: translateY(-1px);
}

/* Themed primary button */
.btn.btn-primary {
    background: var(--6) !important;
    border: none !important;
    color: var(--10) !important;
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(202, 142, 182, 0.12);
    transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease, background-color .12s ease;
}

.btn-primary:hover {
    background: var(--13) !important;
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(248, 197, 246, 0.12);
    opacity: 0.98
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* Alerts tuned to theme */
.alert-success {
    background: linear-gradient(90deg, rgba(196, 241, 230, 0.95), rgba(255, 255, 255, 0.95));
    border-color: rgba(28, 152, 237, 0.15);
    color: var(--8);
}

.alert-danger {
    background: linear-gradient(90deg, rgba(255, 228, 235, 0.95), rgba(255, 255, 255, 0.95));
    border-color: rgba(255, 17, 103, 0.12);
    color: var(--8);
}

/* Responsive tweaks */
@media (max-width: 992px) {
    .contact-container {
        padding-left: 20px;
        padding-right: 20px;
        margin-top: 40px;
        margin-bottom: 40px;
        height: auto
    }

    .contact-form-container h2 {
        font-size: 36px
    }
}

@media (max-width: 576px) {
    .contact-form-container {
        padding: 18px
    }

    .info-card {
        padding: 10px
    }
}

/* Phone-specific adjustments (<=480px) */
@media (max-width: 480px) {
    /* Avoid fixed background on small devices for performance */
    body {
        background-attachment: scroll !important;
    }

    /* Header image should sit normally on the page */
    .header {
        margin-top: 0 !important;
        display: flex;
        justify-content: center;
        padding: 0 8px;
    }

    .header .contact-logo {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    /* Stack the two columns and make cards full-width */
    .contact-container {
        flex-direction: column;
        align-items: stretch;
        padding-left: 16px;
        padding-right: 16px;
        margin-top: 20px !important;
        margin-bottom: 40px !important;
        gap: 16px;
        justify-content: center;
    }

    .contact-details,
    .contact-form {
        width: 100% !important;
        max-width: 100% !important;
        padding: 18px !important;
        box-shadow: 0 8px 20px rgba(24,39,54,0.06) !important;
    }

    .contact-form-container h2 {
        font-size: 26px !important;
        text-align: center;
        margin-bottom: 12px;
    }

    .contact-details p {
        font-size: 15px;
    }

    .info-card {
        padding: 10px 12px;
        gap: 10px;
    }

    .info-card .icon {
        font-size: 1.15rem;
    }

    .info-card .text {
        font-size: 0.98rem;
    }

    /* Form controls slightly more compact */
    .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }

    .contact-form form label,
    .contact-form form button {
        font-size: 14px;
    }

    /* Make primary button full-width on phones */
    .btn.btn-primary {
        display: block;
        width: 100%;
        padding: 10px 18px;
        font-size: 14px;
        border-radius: 12px;
    }

    /* Keep alerts readable */
    .alert-success, .alert-danger {
        padding: 10px 12px;
        font-size: 14px;
    }

    /* Ensure any negative desktop margins do not overlap content */
    .contact-container *,
    .contact-container {
        box-sizing: border-box;
    }
}