/*--------------------------
--- css/style-contact.css ---
--------------------------*/

/* === GLOBAL VARIABLES === */
/* Variables are now primarily defined in style-shared.css */

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body.contact-page {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text-secondary); /* Use generic variable */
    background-color: var(--bg-primary); /* Use generic variable */
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: var(--theme-transition);
}

/* === SHARED SUBPAGE HEADER STYLES === */
.header-subpage {
    background-color: rgba(var(--bg-secondary-rgb, 30, 30, 30), 0.9); /* Use RGB var */
    backdrop-filter: blur(8px);
    padding: 0;
    border-bottom: 1px solid var(--border-color); /* Use generic variable */
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height-subpage, 60px); /* Use var with fallback */
    display: flex;
    align-items: center;
    transition: var(--theme-transition);
}
.container-narrow {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
.nav-subpage {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
}
.logo-subpage { display: flex; align-items: center; text-decoration: none; }
.logo-subpage img { max-height: 30px; margin-right: 0.8rem; filter: brightness(1.1); transition: filter 0.3s ease; }
.logo-subpage span { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); }
.nav-subpage-links { display: flex; gap: 0.8rem; align-items: center;}

/* Buttons already use variables via style-shared.css light theme overrides if needed */
.btn-primary-subpage, .btn-secondary-subpage {
    padding: 0.4rem 0.9rem; border-radius: 15px; font-size: 0.85rem; font-weight: 600;
    text-decoration: none; transition: all 0.3s ease, var(--theme-transition); display: inline-flex; align-items: center; gap: 0.4rem;
}
.btn-primary-subpage { background-color: var(--primary-color); color: var(--bg-primary); border: 1px solid var(--primary-color);}
.btn-primary-subpage:hover { background-color: var(--secondary-color); border-color: var(--secondary-color); transform: translateY(-1px); }
.btn-secondary-subpage { background-color: transparent; color: var(--text-secondary); border: 1px solid var(--border-color); }
.btn-secondary-subpage:hover { background-color: var(--bg-tertiary); color: var(--text-primary); }


/* === CONTACT PAGE SPECIFIC STYLES === */
.main-contact {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
    transition: var(--theme-transition);
}

/* Contact Hero Section */
.contact-hero {
    /* Background image might need adjustment for light theme if it clashes */
    background: linear-gradient(rgba(var(--bg-primary-rgb), 0.8), rgba(var(--bg-primary-rgb), 0.9)), url('https://via.placeholder.com/1920x400/121212/333333?text=Subtle+Background+Pattern');
    background-size: cover;
    background-position: center center;
    padding: 4rem 0 6rem 0;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--border-color); /* Use generic variable */
    transition: background 0.3s ease, border-color 0.3s ease;
}
body.light-theme .contact-hero {
     /* Optional: Different blend mode or gradient for light */
     background: linear-gradient(rgba(var(--bg-primary-rgb), 0.6), rgba(var(--bg-primary-rgb), 0.8)), url('https://via.placeholder.com/1920x400/EEEEEE/CCCCCC?text=Subtle+Light+Pattern');
}

.contact-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    color: var(--text-primary); /* Use generic variable */
    margin-bottom: 0.8rem;
}
.contact-title .text-glow {
    color: var(--primary-color); /* Use generic variable */
    text-shadow: 0 0 10px var(--glow-color), 0 0 15px var(--glow-color); /* Use generic variable */
}
.contact-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted); /* Use generic variable */
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}
/* Divider for Hero */
.contact-hero .section-divider {
    position: absolute; bottom: 0; left: 0; width: 100%;
    overflow: hidden; line-height: 0; transform: rotate(180deg); z-index: 1;
}
.contact-hero .section-divider svg { position: relative; display: block; width: calc(100% + 1.3px); height: 60px; }
.contact-hero .section-divider .shape-fill { fill: var(--bg-secondary); transition: fill 0.3s ease; } /* Use generic variable */

/* Contact Content Area */
.contact-content-area {
    background-color: var(--bg-secondary); /* Use generic variable */
    padding-top: 4rem;
    padding-bottom: 4rem;
    position: relative;
    z-index: 2;
    transition: var(--theme-transition);
}

.contact-wrapper {
    display: flex;
    gap: 3rem;
    background-color: var(--bg-tertiary); /* Use generic variable */
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color); /* Use generic variable */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); /* Needs theme adjustment */
    transition: var(--theme-transition);
}
body.light-theme .contact-wrapper {
     box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.contact-form-column { flex: 1 1 60%; min-width: 0; }
.contact-info-column { flex: 1 1 40%; min-width: 0; border-left: 1px solid var(--border-color); padding-left: 2.5rem; transition: border-color 0.3s ease; } /* Use generic variable */
body.light-theme .contact-info-column { border-left-color: var(--border-color); }


.contact-form-column h2,
.contact-info-column h2 {
    font-size: 1.6rem;
    color: var(--primary-color); /* Use generic variable */
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color); /* Use generic variable */
    transition: border-color 0.3s ease, color 0.3s ease;
}

/* Form Styling */
#contactForm .form-group { margin-bottom: 1.5rem; }
#contactForm label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; color: var(--text-secondary); } /* Use generic variable */
#contactForm label .required { color: var(--error-color); font-weight: bold; margin-left: 2px; } /* Use generic variable */

#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm textarea {
    width: 100%; padding: 0.8rem 1rem;
    background-color: var(--bg-primary); /* Use generic variable */
    border: 1px solid var(--border-color); /* Use generic variable */
    border-radius: 6px;
    color: var(--text-primary); /* Use generic variable */
    font-size: 1rem; font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

#contactForm input[type="text"]:focus,
#contactForm input[type="email"]:focus,
#contactForm textarea:focus {
    outline: none;
    border-color: var(--primary-color); /* Use generic variable */
    box-shadow: 0 0 0 2px var(--glow-color); /* Use generic variable */
}

#contactForm textarea { resize: vertical; min-height: 120px; }
#contactForm ::placeholder { color: var(--text-muted); opacity: 0.8; transition: color 0.3s ease;} /* Use generic variable */

#contactForm .form-note { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; } /* Use generic variable */
#contactForm .form-submit-group { display: flex; flex-direction: column; align-items: flex-start; }

#contactForm button.btn-submit { width: auto; padding: 0.9rem 2.2rem; font-size: 1.05rem; background-color: var(--primary-color); color: var(--bg-primary); } /* Use generic variables */
#contactForm button.btn-submit:hover { background-color: var(--secondary-color); border-color: var(--secondary-color); }
#contactForm button.btn-submit i { margin-right: 0.6rem; }

/* Form Status Message */
.form-status { margin-top: 1rem; padding: 0.8rem 1rem; border-radius: 5px; font-weight: 500; display: none; transition: var(--theme-transition); }
.form-status.success {
    /* Define RGB for success color */
    --success-color-rgb-dark: 40, 167, 69;
    --success-color-rgb-light: 33, 136, 56;
    --success-color-rgb: var(--success-color-rgb-dark);
    background-color: rgba(var(--success-color-rgb), 0.2);
    border: 1px solid var(--success-color);
    color: var(--success-color);
    display: block;
}
.form-status.error {
     /* Define RGB for error color */
    --error-color-rgb-dark: 220, 53, 69;
    --error-color-rgb-light: 200, 35, 51;
    --error-color-rgb: var(--error-color-rgb-dark);
    background-color: rgba(var(--error-color-rgb), 0.2);
    border: 1px solid var(--error-color);
    color: var(--error-color);
    display: block;
}
body.light-theme .form-status.success { --success-color-rgb: var(--success-color-rgb-light); }
body.light-theme .form-status.error { --error-color-rgb: var(--error-color-rgb-light); }


/* Info Column Styling */
.contact-info-column p { margin-bottom: 1.5rem; color: var(--text-secondary); line-height: 1.6; }
.contact-info-column .info-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-info-column .info-icon { color: var(--secondary-color); font-size: 1.5rem; width: 25px; text-align: center; margin-top: 3px; flex-shrink: 0; transition: color 0.3s ease; }
.contact-info-column .info-item div { flex-grow: 1; }
.contact-info-column .info-item strong { display: block; color: var(--text-primary); margin-bottom: 0.2rem; }
.contact-info-column .info-item a { color: var(--primary-color); text-decoration: none; word-break: break-all; transition: color 0.3s ease; }
.contact-info-column .info-item a:hover { color: var(--secondary-color); text-decoration: underline; }
.contact-info-column .info-item small { font-size: 0.85rem; color: var(--text-muted); display: block; margin-top: 0.2rem; }

.operating-hours { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px dashed var(--border-color); transition: border-color 0.3s ease; }
.operating-hours h3 { font-size: 1.1rem; color: var(--text-primary); margin-bottom: 1rem; }
.operating-hours p { font-size: 0.95rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.6rem; color: var(--text-secondary); }
.operating-hours p i { color: var(--text-muted); width: 16px; text-align: center; }


/* Background Shapes for Contact Area */
.contact-background-shapes { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: -1; pointer-events: none; }
.contact-background-shapes .shape { position: absolute; border-radius: 50%; opacity: 0.05; /* Keep subtle */ filter: blur(50px); animation: shape-float-slow 30s infinite ease-in-out alternate; transition: background-color 0.3s ease; }
.contact-background-shapes .shape-1 { width: 500px; height: 500px; background-color: var(--primary-color); top: 20%; left: -10%; animation-duration: 35s; }
.contact-background-shapes .shape-2 { width: 400px; height: 400px; background-color: var(--secondary-color); bottom: 10%; right: -5%; animation-duration: 28s; animation-direction: alternate-reverse; }
@keyframes shape-float-slow { 0% { transform: translateY(0px) rotate(0deg) scale(1); } 100% { transform: translateY(-40px) rotate(15deg) scale(1.05); } }

/* --- NEW: Contact Form 7 Styling --- */

/* Overall form container (optional) */
.wpcf7 form.wpcf7-form {
    /* Add spacing if needed, though divs handle it now */
    /* margin-top: 1rem; */
}

/* Style form groups (from CF7 code) */
.wpcf7 .form-group {
    margin-bottom: 1.5rem;
}

/* Style labels (already targeted by ID, but add class target for CF7) */
.wpcf7 label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.wpcf7 label .required { /* Keep required styling */
    color: var(--error-color);
    font-weight: bold;
    margin-left: 2px;
}

/* Style CF7 input fields and textarea */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 textarea,
.wpcf7 select { /* Added select just in case */
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.wpcf7 textarea {
    resize: vertical;
    min-height: 120px;
}

/* Focus styles */
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 input[type="date"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--glow-color);
}

/* Placeholder styling (might need vendor prefixes for full compatibility) */
.wpcf7 ::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
     transition: color 0.3s ease;
}

/* Submit button group styling */
.wpcf7 .form-submit-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.wpcf7 .form-note { /* Target note inside CF7 form */
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Style CF7 submit button */
.wpcf7 input[type="submit"].btn-submit { /* Target specifically */
    /* Inherit .btn styles if possible, or re-apply */
    display: inline-block;
    padding: 0.9rem 2.2rem;
    border-radius: 50px; /* Match original button */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease, var(--theme-transition);
    cursor: pointer;
    text-align: center;
    box-shadow: var(--shadow-light);
    font-size: 1.05rem;
    border: none; /* CF7 might add a default border */
    background-color: var(--primary-color); /* Apply theme button styles */
    color: var(--bg-primary); /* Apply theme button styles */
    width: auto; /* Override potential CF7 full-width */
}
/* Add icon spacing if needed (CF7 doesn't directly support icons in the tag) */
/* You might need JS to add the icon, or style ::before */
/* .wpcf7 input[type="submit"].btn-submit::before {
    content: '\f1d8'; /* paper-plane */
/* font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 0.6rem;
/* } */

.wpcf7 input[type="submit"].btn-submit:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Style CF7 Response Output Messages */
.wpcf7 div.wpcf7-response-output {
    margin: 1.5rem 0 0 0; /* Add space above */
    padding: 1rem 1.5rem;
    border-radius: 6px;
    border-width: 1px;
    border-style: solid;
}

/* Success message */
.wpcf7 div.wpcf7-mail-sent-ok {
     /* Define RGB for success color if not already globally available */
    --success-color-rgb-dark: 40, 167, 69;
    --success-color-rgb-light: 33, 136, 56;
    --success-color-rgb: var(--success-color-rgb-dark);
    background-color: rgba(var(--success-color-rgb), 0.15);
    border-color: var(--success-color);
    color: var(--text-secondary); /* Adjust text color for readability */
}
body.light-theme .wpcf7 div.wpcf7-mail-sent-ok { --success-color-rgb: var(--success-color-rgb-light); color: var(--text-primary); }


/* Validation error message */
.wpcf7 div.wpcf7-validation-errors,
.wpcf7 div.wpcf7-spam-blocked,
.wpcf7 div.wpcf7-mail-sent-ng { /* Includes other errors */
     /* Define RGB for error color if not already globally available */
    --error-color-rgb-dark: 220, 53, 69;
    --error-color-rgb-light: 200, 35, 51;
    --error-color-rgb: var(--error-color-rgb-dark);
    background-color: rgba(var(--error-color-rgb), 0.15);
    border-color: var(--error-color);
    color: var(--text-secondary); /* Adjust text color for readability */
}
body.light-theme .wpcf7 div.wpcf7-validation-errors,
body.light-theme .wpcf7 div.wpcf7-spam-blocked,
body.light-theme .wpcf7 div.wpcf7-mail-sent-ng { --error-color-rgb: var(--error-color-rgb-light); color: var(--text-primary); }


/* Style individual field validation errors */
.wpcf7 span.wpcf7-not-valid-tip {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: block; /* Make it appear below the field */
}

/* --- End CF7 Styling --- */

/* === RESPONSIVE (Contact Page) === */
@media screen and (max-width: 992px) {
    .contact-wrapper { flex-direction: column; gap: 2.5rem; }
    .contact-info-column { border-left: none; padding-left: 0; border-top: 1px solid var(--border-color); padding-top: 2.5rem; }
}

@media screen and (max-width: 768px) {
    .header-subpage { height: auto; position: static; }
    .nav-subpage { flex-direction: column; gap: 0.8rem; height: auto; padding: 0.8rem 1rem; }
    .nav-subpage-links { width: 100%; justify-content: center; }
    .logo-subpage span { display: inline; }

    .contact-hero { padding: 3rem 0 5rem 0; }
    .contact-title { font-size: 2.2rem; }
    .contact-subtitle { font-size: 1rem; }

    .contact-content-area { padding: 3rem 0; }
    .contact-wrapper { padding: 1.5rem; }
    .contact-form-column h2,
    .contact-info-column h2 { font-size: 1.4rem; }
}

/* Shared Footer styles are in style-shared.css */