/* ========================================
   CONTACTS PAGE STYLES
   ======================================== */

/* Page Header */
.contacts-page-header {
    padding: 48px 0;
    text-align: center;
}

.contacts-page-header-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 48px 32px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.1);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #bfdbfe;
    text-align: center;
}

.contacts-page-title {
    font-size: 42px;
    color: #1a1a1a;
    font-weight: 800;
    margin-bottom: 16px;
    text-align: center;
}

.contacts-page-subtitle {
    color: #4b5563;
    font-size: 18px;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    text-align: center;
    /* color: #4b5563;
    font-size: 18px;
    font-weight: 400;
    margin: 0;
    text-align: center;
    display: block;
    width: 100%; */
}

/* Content Wrapper */
.contacts-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px 0 60px;
}

/* Contact Info Section */
.contacts-info-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contacts-blocks .wp-block-group {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
    margin-bottom: 24px;
}

.contacts-blocks .wp-block-group:last-child {
    margin-bottom: 0;
}

.contacts-blocks h2,
.contacts-blocks h3 {
    color: #1a1a1a;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #2563eb;
}

.contacts-blocks p {
    color: #374151;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.contacts-blocks p:last-child {
    margin-bottom: 0;
}

.contacts-blocks a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.contacts-blocks a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.contacts-blocks strong {
    color: #1a1a1a;
    font-weight: 600;
}

.contacts-blocks ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contacts-blocks ul li {
    padding: 8px 0;
    color: #374151;
}

/* Contact Form Section */
.contacts-form-section {
    position: sticky;
    top: 20px;
    align-self: start;
}

.contact-form-box {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}

.contact-form-title {
    font-size: 22px;
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 6px;
}

.contact-form-description {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Messages */
.contact-message {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-weight: 500;
    font-size: 15px;
}

.contact-message-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.contact-message-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Form Styles */
.contact-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}

.form-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    margin-bottom: 0 !important;
}

.form-group label {
    color: #374151;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 0 !important;
}

.required {
    color: #dc2626;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group textarea {
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #fff;
}

/* Remove default validation icons */
.form-group input:invalid,
.form-group textarea:invalid {
    box-shadow: none;
}

.form-group input::-webkit-validation-bubble-message,
.form-group input::-webkit-validation-bubble-arrow,
.form-group input::-webkit-validation-bubble {
    display: none;
}

.form-group input::-moz-focus-inner {
    border: 0;
}

.form-group input:-moz-ui-invalid {
    box-shadow: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Captcha */
.captcha-group #captcha-question {
    color: #2563eb;
    font-weight: 700;
}

/* Checkboxes */
.checkbox-group {
    margin-top: 4px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-weight: 400 !important;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2563eb;
    flex-shrink: 0;
}

.checkbox-label span {
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
}

.checkbox-label a {
    color: #2563eb;
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: #1d4ed8;
}

/* Submit Button */
.contact-submit-btn {
    background: #2563eb;
    color: #fff;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
    margin-top: 4px;
}

.contact-submit-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .contacts-content-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .contacts-form-section {
        position: static;
        order: 2;
    }
    
    .contacts-info-section {
        order: 1;
    }
}

@media (max-width: 768px) {
    .contacts-page-header {
        padding: 32px 0;
    }
    
    .contacts-page-header-box {
        padding: 32px 24px;
    }
    
    .contacts-page-title {
        font-size: 32px;
    }
    
    .contacts-page-subtitle {
        font-size: 16px;
    }
    
    .contacts-content-wrapper {
        padding: 32px 0 48px;
        gap: 24px;
    }
    
    .contact-form-box {
        padding: 24px;
    }
    
    .contacts-blocks .wp-block-group {
        padding: 20px;
    }
    
    .contact-form-title {
        font-size: 20px;
    }
    
    .contact-form-description {
        font-size: 14px;
    }
}

/* Captcha Image Styles */
.captcha-image-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.captcha-image {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    display: block;
    max-width: 200px;
    height: auto;
}

.captcha-refresh-btn {
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    flex-shrink: 0;
}

.captcha-refresh-btn:hover {
    background: #e5e7eb;
    color: #374151;
    border-color: #d1d5db;
}

.captcha-refresh-btn:active {
    transform: rotate(180deg);
}

.captcha-refresh-btn svg {
    display: block;
}

.captcha-group input[type="number"] {
    max-width: 150px;
}
