/* === CONTACT FORM STYLES === */
.ce-contact-form {
    background: var(--lavender-bg);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    box-shadow: 0 5px 15px rgba(108, 81, 122, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 700px;
    animation: fadeInUp 0.6s ease both;
    /* New: Flex container for two columns */
    display: flex;
    gap: 1.5rem;
}

.ce-contact-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(108, 81, 122, 0.18);
}

.ce-contact-form p {
    margin-bottom: 0.5rem;
}

/* Left and Right columns take equal space */
.form-left,
.form-right {
    flex: 1 1 0;
}

/* Make label block and aligned nicely */
.ce-contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--violet-dark);
    font-size: 0.9rem;
}

/* Inputs, selects, textarea fill column width */
.ce-contact-form input,
.ce-contact-form select,
.ce-contact-form textarea {
    width: 100%;
    padding: 0.5rem 0.85rem;
    border-radius: var(--button-radius);
    border: 1px solid #bbb;
    font-size: 0.9rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.ce-contact-form input:focus,
.ce-contact-form select:focus,
.ce-contact-form textarea:focus {
    border-color: var(--violet);
    outline: none;
    box-shadow: 0 0 0 3px rgba(92, 51, 114, 0.12);
}

/* Align submit button nicely at the bottom of right column */
.form-right p:last-child {
    margin-top: 0.6rem;
    text-align: right;
}

.ce-contact-form button {
    background: var(--violet-dark);
    color: var(--white-bg);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: var(--button-radius);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: inherit;
    min-width: 110px;
}

.ce-contact-form button:hover {
    background-color: var(--violet);
    transform: scale(1.05);
}

/* === SUCCESS & ERROR MESSAGES === */
.ce-success,
.ce-error {
    max-width: 480px;
    margin: 1.5rem auto 1rem;
    padding: 0.8rem 1.2rem;
    border-radius: var(--button-radius);
    font-size: 0.9rem;
    font-weight: 500;
    animation: fadeIn 0.5s ease both;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ce-success {
    background-color: #dff5e3;
    border-left: 5px solid #2e8b57;
    color: #2e8b57;
}

.ce-error {
    background-color: #ffe5e5;
    border-left: 5px solid #c0392b;
    color: #c0392b;
}

.ce-error ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

/* === CUSTOM CONTACT PAGE === */
.custom-contact-page {
    padding: 3rem 0 4rem;
    animation: fadeIn 0.6s ease-in-out both;
}

.contact-wrapper {
    margin: 0 auto;
    text-align: center;
}

.custom-contact-page h1 {
    font-size: 2.4rem;
    color: var(--violet-dark);
    margin-bottom: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.custom-contact-page p {
    font-size: 1.05rem;
    color: var(--text-color);
    font-weight: 500;
}

/* === GRID LAYOUT === */
.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6rem;
    justify-content: center;
    align-items: flex-start;
}

/* === LEFT: CONTACT FORM === */
.contact-form-container {
    flex: 1 1 820px;
    max-width: 700px;
}

/* Apply max-height only on desktop */
@media (min-width: 768px) {
    .contact-form-container {
        max-height: 300px;
    }
}

/* === RIGHT: INFO CARD === */
.contact-info-card {
    flex: 1 1 380px;
    max-width: 400px;
    max-height: 285px;
    background: linear-gradient(135deg, #6c517a 0%, #7b619d 100%);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(92, 51, 114, 0.25);
    padding: 2rem 2.5rem;
    color: #f5f1fa;
    text-align: left;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.7s ease both;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Decorative shape in background */
.contact-info-card::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

/* Heading */
.contact-info-card h2 {
    font-size: 1.6rem;
    margin-bottom: 1.6rem;
    color: #e6dff4;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

.contact-info-card p {
    margin-bottom: 1.1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 600;
    color: #dcd6f7;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Icons */
.contact-info-card i {
    font-size: 1.15rem;
    min-width: 22px;
    color: #d1c4e9;
}

/* Map Container */
.map-container {
    margin-top: 2.2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(92, 51, 114, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.map-container iframe {
    width: 100%;
    height: 260px;
    border: none;
    display: block;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
    border-radius: 12px;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 992px) {
    .ce-contact-form {
        flex-direction: column;
    }

    .form-left,
    .form-right {
        flex-basis: 100%;
    }

    .contact-grid {
        display: flow;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .contact-info-card,
    .contact-form-container {
        max-width: 100%;
        flex-basis: 100%;
        padding: 0 0 3rem 0;
    }

    .contact-info-card {
        padding: 1.8rem 2rem;
        margin-top: 1rem;
    }
}


/* Map Section Styles */
.map-wrapper {
    margin-bottom: 50px;
    overflow: hidden;
}

.map-container {
    width: 100%;
    height: 450px;
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* === CUSTOM DROPDOWN (SELECT) === */
.ce-contact-form select {
    appearance: none;              /* Remove default arrow */
    -webkit-appearance: none;      /* Safari & iOS */
    -moz-appearance: none;         /* Firefox */
    background-color: #fff;
    border: 1px solid #bbb;
    border-radius: var(--button-radius);
    padding: 0.55rem 2.5rem 0.55rem 0.85rem;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--violet-dark);
    line-height: 1.4;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%236c517a' height='18' viewBox='0 0 24 24' width='18' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 16px;
    box-sizing: border-box;
}

.ce-contact-form select:focus {
    border-color: var(--violet);
    outline: none;
    box-shadow: 0 0 0 3px rgba(92, 51, 114, 0.12);
}

/* Make sure options look clean */
.ce-contact-form option {
    padding: 0.5rem;
    font-size: 0.9rem;
}

/* Safari iOS fix: prevent zoom on focus */
@supports (-webkit-touch-callout: none) {
    .ce-contact-form select {
        font-size: 16px; /* Safari iOS won't zoom if font-size >=16px */
    }
}

/* Mobile-friendly spacing */
@media (max-width: 768px) {
    .ce-contact-form select {
        padding: 0.65rem 2.2rem 0.65rem 1rem;
    }
}
