/* ========================================
   Contacts Page Styles
   HPDecor Theme - Contact Form 7
======================================== */

/* Page Container */
.page-template-default .entry-content,
.contact-page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px 80px;
}

/* Page Title */
.contact-page-content .page-title,
.page-template-default .entry-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-page-content h1,
.page-template-default .entry-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 42px;
    font-weight: 400;
    color: #262626;
    margin-bottom: 0;
}

/* Form Subtitle/Description */
.wpcf7 p:first-of-type,
.contact-form-subtitle {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 12px;
    font-style: italic;
    color: #262626;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* ========================================
   Contact Form 7 - Form Styles
======================================== */
.wpcf7 {
    max-width: 600px;
    margin: 0 auto;
}

.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wpcf7-form p {
    margin-bottom: 0;
}

/* Form Labels */
.wpcf7-form label {
    display: block;
    font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #262626;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Required asterisk */
.wpcf7-form label .required,
.wpcf7-form .wpcf7-form-control-wrap::after {
    color: #826251;
}

/* Input Fields - Text & Email */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="date"] {
    width: 100%;
    padding: 16px 20px;
    font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    color: #262626;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form input[type="number"]:focus,
.wpcf7-form input[type="date"]:focus {
    border-color: #826251;
    box-shadow: 0 0 0 3px rgba(130, 98, 81, 0.1);
}

/* Placeholder */
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
    color: #999999;
    opacity: 1;
}

/* Textarea */
.wpcf7-form textarea {
    width: 100%;
    min-height: 180px;
    padding: 16px 20px;
    font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    color: #262626;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    outline: none;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.wpcf7-form textarea:focus {
    border-color: #826251;
    box-shadow: 0 0 0 3px rgba(130, 98, 81, 0.1);
}

/* Select Dropdown */
.wpcf7-form select {
    width: 100%;
    padding: 16px 45px 16px 20px;
    font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    color: #262626;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23262626' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wpcf7-form select:focus {
    border-color: #826251;
    box-shadow: 0 0 0 3px rgba(130, 98, 81, 0.1);
}

/* Checkbox & Radio */
.wpcf7-form input[type="checkbox"],
.wpcf7-form input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    accent-color: #826251;
    cursor: pointer;
}

.wpcf7-form .wpcf7-list-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.wpcf7-form .wpcf7-list-item label {
    margin-bottom: 0;
    text-transform: none;
    font-weight: 400;
    cursor: pointer;
}

/* File Upload */
.wpcf7-form input[type="file"] {
    width: 100%;
    padding: 14px;
    font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    color: #262626;
    background-color: #f8f8f8;
    border: 2px dashed #e0e0e0;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.wpcf7-form input[type="file"]:hover {
    border-color: #826251;
    background-color: #faf9f8;
}

/* ========================================
   Submit Button
======================================== */
.wpcf7-form input[type="submit"],
.wpcf7-form button[type="submit"],
.wpcf7-submit {
    display: inline-block;
    width: 100%;
    max-width: 250px;
    margin: 20px auto 0;
    padding: 16px 40px;
    font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ffffff;
    background-color: #262626;
    border: 2px solid #262626;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-form button[type="submit"]:hover,
.wpcf7-submit:hover {
    background-color: #826251;
    border-color: #826251;
    color: #ffffff;
}

.wpcf7-form input[type="submit"]:active,
.wpcf7-form button[type="submit"]:active,
.wpcf7-submit:active {
    transform: translateY(1px);
}

/* Button wrapper centering */
.wpcf7-form p:last-of-type {
    text-align: center;
    margin-top: 15px;
}

/* ========================================
   Validation & Messages
======================================== */
/* Error state */
.wpcf7-not-valid {
    border-color: #c0392b !important;
}

.wpcf7-not-valid-tip {
    display: block;
    font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    color: #c0392b;
    margin-top: 6px;
}

/* Response messages */
.wpcf7-response-output {
    margin: 30px 0 0 !important;
    padding: 20px 25px !important;
    font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    text-align: center;
    border-radius: 0 !important;
}

/* Success message */
.wpcf7-mail-sent-ok,
.wpcf7 form.sent .wpcf7-response-output {
    background-color: #f0f9f4 !important;
    border: 1px solid #27ae60 !important;
    color: #1e7e34 !important;
}

/* Error message */
.wpcf7-validation-errors,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
    background-color: #fdf2f2 !important;
    border: 1px solid #c0392b !important;
    color: #a71d2a !important;
}

/* Spam blocked */
.wpcf7-spam-blocked,
.wpcf7 form.spam .wpcf7-response-output {
    background-color: #fff8e6 !important;
    border: 1px solid #f39c12 !important;
    color: #856404 !important;
}

/* Mail failed */
.wpcf7-mail-sent-ng,
.wpcf7 form.failed .wpcf7-response-output {
    background-color: #fdf2f2 !important;
    border: 1px solid #c0392b !important;
    color: #a71d2a !important;
}

/* Loading spinner */
.wpcf7-spinner {
    display: inline-block;
    margin-left: 15px;
    vertical-align: middle;
}

.wpcf7 form.submitting .wpcf7-submit {
    opacity: 0.7;
    cursor: wait;
}

/* ========================================
   Contact Info Section (Optional)
======================================== */
.contact-info-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 80px auto 0;
    padding: 60px 40px;
    background-color: #f8f8f8;
    text-align: center;
}

.contact-info-item {
    padding: 20px;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    color: #826251;
}

.contact-info-icon svg {
    width: 100%;
    height: 100%;
}

.contact-info-title {
    font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #262626;
    margin-bottom: 10px;
}

.contact-info-text {
    font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    color: #666666;
    line-height: 1.6;
}

.contact-info-text a {
    color: #666666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-text a:hover {
    color: #826251;
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 768px) {
    .page-template-default .entry-content,
    .contact-page-content {
        padding: 40px 20px 60px;
    }

    .contact-page-content h1,
    .page-template-default .entry-title {
        font-size: 32px;
    }

    .wpcf7 p:first-of-type,
    .contact-form-subtitle {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .wpcf7 {
        max-width: 100%;
    }

    .wpcf7-form {
        gap: 20px;
    }

    .wpcf7-form input[type="text"],
    .wpcf7-form input[type="email"],
    .wpcf7-form input[type="tel"],
    .wpcf7-form input[type="url"],
    .wpcf7-form input[type="number"],
    .wpcf7-form input[type="date"],
    .wpcf7-form textarea,
    .wpcf7-form select {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .wpcf7-form textarea {
        min-height: 150px;
    }

    .wpcf7-form input[type="submit"],
    .wpcf7-form button[type="submit"],
    .wpcf7-submit {
        width: 100%;
        max-width: 100%;
        padding: 16px 30px;
    }

    /* Contact info section */
    .contact-info-section {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 25px;
        margin-top: 50px;
    }

    .contact-info-item {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .contact-page-content h1,
    .page-template-default .entry-title {
        font-size: 26px;
    }

    .wpcf7 p:first-of-type,
    .contact-form-subtitle {
        font-size: 16px;
    }

    .wpcf7-form label {
        font-size: 12px;
    }

    .wpcf7-form input[type="submit"],
    .wpcf7-form button[type="submit"],
    .wpcf7-submit {
        font-size: 12px;
        padding: 14px 25px;
    }
}

/* ========================================
   Dark Mode Support (Optional)
======================================== */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed in future */
}
