/* ===========================================
   contact_styles.css – FINAL PERFECT VERSION
   =========================================== */

.contact-main { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 2rem 1rem; 
    font-family: system-ui, -apple-system, sans-serif;
}

.contact-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-hero h1 {
    font-size: 2.6rem;
    color: #4B6F44;
    margin-bottom: 0.8rem;
}

.contact-hero p {
    font-size: 1.22rem;
    color: #4a5568;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Two-column layout – perfectly centered */
.contact-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
    align-items: center;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* LEFT: Contact Info */
.contact-contact-info {
    background: #E0F7E0;
    padding: 2.8rem 2.2rem;
    border-radius: 22px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.09);
}

.info-item {
    margin-bottom: 2.2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #98FB98;
}

.info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-item h3,
.form-wrapper h2 {
    display: flex !important;
    align-items: center !important;     /* This forces perfect vertical center */
    gap: 0.85rem;
    margin: 0 0 0.7rem 0;
    line-height: 1.3 !important;        /* Prevents text from being too tall */
    font-weight: 600;
}

/* Normal emoji size */
.info-item .emoji,
.form-wrapper h2 .emoji {
    font-size: 1rem;  /* Reduced from 1.5rem for normal text-matching size */
    margin-right: 0.6rem;
    display: inline-block;
}

/* Form title emoji slightly smaller */
.form-wrapper h2 .emoji {
    font-size: 1rem;  /* Reduced from 1.5rem; adjust to 1.2rem if you want mild emphasis */
    margin-right: 0.6rem;
}

.info-item p,
.info-item a {
    margin: 0.4rem 0 0 0;
    color: #4a5568;
    line-height: 1.5;
    font-size: 1.05rem;
}

.info-item strong {
    font-size: 1.5rem;
    color: #4B6F44;
}

/* RIGHT: Form – Full width inputs, no cutoff */
.form-wrapper {
    background: white;
    padding: 2rem 1.6rem;
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.1);
    position: relative;
}

.form-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 17px;
    background: linear-gradient(90deg, #4B6F44, #808000);
    border-radius: 22px 22px 0 0;
}

.form-wrapper h2 {
    margin: 0 0 0.6rem 0;
    font-size: 1.5rem;
    color: #2d3748;
    display: flex;
    align-items: center;
}

.form-wrapper > p {
    color: #718096;
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Full-width inputs – no cutoff */
#contact-form input,
#contact-form textarea {
    width: 100%;
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
    padding: 1rem 1.1rem;
    border: 2px solid #98FB98;
    border-radius: 12px;
    font-size: 1.0rem;
    background: #E0F7E0;
    transition: all 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: #4B6F44;
    background: white;
    box-shadow: 0 0 0 4px rgba(75, 111, 68, 0.15);
}

/* Buttons */
#contact-form button,
.info-item .button,
a.button {
    display: inline-block;
    padding: 1rem 1.5rem;
    margin-top: 1.0rem;
    background: linear-gradient(135deg, #98FB98, #7FFF7F);
    color: #333 !important;
    text-decoration: none !important;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(152, 251, 152, 0.3);
}

#contact-form button:hover,
.info-item .button:hover,
a.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(152, 251, 152, 0.4);
}

/* Spinner & Thank You */
.spinner {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.98);
    border-radius: 22px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #4a5568;
    z-index: 10;
}

.spinner::after {
    content: "";
    width: 50px; height: 50px;
    border: 5px solid #98FB98;
    border-top-color: #4B6F44;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.thank-you-message {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-radius: 22px;
    border: 1px solid #86efac;
    animation: fadeIn 0.8s ease-out;
}

/* Default color (light gray) */
#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: #a0aec0 !important;        /* Soft gray – very readable */
    opacity: 1;                       /* Fixes Firefox */
    font-style: italic;               /* Optional: makes it feel friendly */
}

/* When user focuses on input – make placeholder lighter or darker */
#contact-form input:focus::placeholder,
#contact-form textarea:focus::placeholder {
    color: #cbd5e0 !important;        /* Lighter when typing */
}

.info-item a[href="index.html#location"],
.info-item a[href*="location"] {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none !important;
    color: #4B6F44 !important;  /* Soft green text */
}

.info-item a[href="index.html#location"]:hover,
.info-item a[href*="location"]:hover {
    background: #E0F7E0;           /* Soft green background on hover */
    color: #3A5A3A !important;     /* Slightly darker text */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(75, 111, 68, 0.15);
}

#contact-form label {
    display: block;
    margin: 1.6rem 0 0.5rem;      /* More breathing room above */
    font-weight: 600;
    color: #2d3748;
    font-size: 1.02rem;
    line-height: 1.5 !important;   /* ← This is what you want */
    letter-spacing: 0.01em;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* Fix for oversized emojis after Twemoji parsing */
img.emoji {
    height: 2rem !important; /* Normal base size; overrides Twemoji's 1em to fixed value */
    width: 2rem !important;
    vertical-align: middle;
    display: inline-block;
}

/* Larger for h1 to match heading scale but not oversized */
.contact-hero h1 img.emoji {
    height: 4rem !important; /* Adjust this value (e.g., 1.8rem-2.2rem) based on preference */
    width: 4rem !important;
}

/* For calendar and other info-item emojis */
.info-item h3 img.emoji {
    height: 2rem !important; /* Normal size for subheadings; tweak if needed */
    width: 2rem !important;
}