/* Contact Form 7 Styles - Custom Styling */

/* Main form container */
.wpcf7-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-family: inherit;
}
.contact-row p {
    margin: 0px;
}

.contact-row {
    display: flex
;
    gap: 15px;
}

/* Form fields container */
.wpcf7-form-control-wrap {
    margin-bottom: 0;
    display: block;
    width: 100%;
}

/* Input fields styling */
.wpcf7-form-control {
    width: 100%;
    padding: 0 12px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    height: 40px;
    line-height: 1.5;
    color: #333333;
    background-color: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.wpcf7-form-control:focus {
    outline: none;
    border: 1px solid #365771;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

/* Textarea specific styling */
.wpcf7-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Select dropdown styling */
.wpcf7-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

/* Checkbox and radio button styling */
.wpcf7-checkbox,
.wpcf7-radio {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 5px;
}

.wpcf7-checkbox .wpcf7-list-item,
.wpcf7-radio .wpcf7-list-item {
    display: flex;
    align-items: center;
    margin: 0;
}

.wpcf7-checkbox input[type="checkbox"],
.wpcf7-radio input[type="radio"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    accent-color: #365771;
}

/* Labels styling */
.wpcf7-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Required field indicator */
label:has(.wpcf7-form-control:required)::after {
    content: " *";
    color: #dc2626;
    font-weight: bold;
    align-self: flex-start;
    margin-top: -4px;
}

/* Submit button styling */
.wpcf7-submit {
    color: #ffffff;
    border: none;
    padding: 0 12px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    border: 1px solid #365771;
}

.wpcf7-submit:hover {
    background-color: white;
    color: #365771;
}

.wpcf7-submit:active {
    /* No transform effects */
}

.wpcf7-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

/* File upload styling */
.wpcf7-file {
    padding: 12px;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    background-color: #f9fafb;
    text-align: center;
    transition: all 0.3s ease;
}

.wpcf7-file:hover {
    border-color: #365771;
    background-color: #f0f9ff;
}

/* Validation and error styling */
.wpcf7-not-valid-tip {
    color: #dc2626;
    font-size: 14px;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}

.wpcf7-form-control.wpcf7-not-valid {
    border: 2px solid #dc2626;
    background-color: #fef2f2;
}

.wpcf7-form-control.wpcf7-not-valid:focus {
    border: 2px solid #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Success and error messages */
.wpcf7-response-output {
    margin: 20px 0;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    font-size: 16px;
    text-align: left;
}

.wpcf7-mail-sent-ok {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.wpcf7-mail-sent-ng {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.wpcf7-spam-blocked {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.wpcf7-validation-errors {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Loading state */
.wpcf7-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #365771;
    border-radius: 50%;
    margin-left: 10px;
}

/* Responsive design */
@media (max-width: 768px) {
    .wpcf7-form {
        padding: 20px;
    }
    
    .row {
        flex-direction: column;
        gap: 0;
    }
    
    .row label {
        margin-bottom: 20px;
    }
    
    .wpcf7-form-control {
        padding: 12px 15px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .wpcf7-submit {
        padding: 14px 24px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .wpcf7-form {
        padding: 15px;
    }
    
    .wpcf7-checkbox,
    .wpcf7-radio {
        flex-direction: column;
        gap: 10px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .wpcf7-form {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .wpcf7-form label {
        color: #d1d5db;
    }
    
    .wpcf7-form-control {
        background-color: #374151;
        border: 2px solid #4b5563;
        color: #f9fafb;
    }
    
    .wpcf7-form-control:focus {
        border: 2px solid #365771;
        box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
    }
    
    .wpcf7-file {
        background-color: #374151;
        border: 2px solid #4b5563;
    }
    
    .wpcf7-file:hover {
        background-color: #4b5563;
        border: 2px solid #365771;
    }
}

/* Accessibility improvements */
.wpcf7-form-control:focus-visible {
    outline: 2px solid #365771;
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .wpcf7-form-control {
        border: 3px solid #000000;
    }
    
    .wpcf7-submit {
        border: 3px solid #000000;
    }
}

/* Print styles */
@media print {
    .wpcf7-form {
        box-shadow: none;
        border: 1px solid #000000;
    }
    
    .wpcf7-submit {
        background: #ffffff !important;
        color: #000000 !important;
        border: 1px solid #000000;
    }
}