/* Contact Form Styles - Using Spota CSS Classes */
.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.contact-form-wrapper {
    padding: 40px;
}

/* Form Layout */
.w-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 35px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Customize Webflow inputs for dark theme */
.w-input,
.w-select {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border-radius: 3px !important;
    padding: 20px !important;
    font-size: 1rem !important;
    transition: all 0.2s ease !important;
    height: unset !important;
    cursor: pointer;
    appearance: none;
    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='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px !important;
}

.w-input::placeholder,
.w-select::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.w-input:focus,
.w-select:focus {
    border-color: #5865f2 !important;
    background: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 0 0 1px #5865f2 !important;
    outline: none !important;
}

/* Labels */
.w-form-label {
    color: #ffffff !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
}

/* Checkboxes */
.w-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 16px !important;
    padding-left: 0 !important;
}

.w-checkbox-input {
    margin: 0 !important;
    float: none !important;
    width: 20px !important;
    height: 20px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 3px !important;
    flex-shrink: 0;
}

.w-checkbox-input:checked {
    background: #5865f2 !important;
    border-color: #5865f2 !important;
}

.w-checkbox .w-form-label {
    margin-bottom: 0 !important;
    line-height: 1.5;
}

.w-checkbox a {
    color: #131852;
    text-decoration: none;
    transition: color 0.2s ease;
}

.w-checkbox a:hover {
    color: #4752c4;
    text-decoration: underline;
}

/* Button styling */
.button-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.btn-icon {
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.button-white:hover .btn-icon {
    transform: translateX(4px);
}


.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #5865f2;
    border-radius: 3px;
    color: #ffffff;
    flex-shrink: 0;
}

.contact-info-content h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    color: #ffffff;
    margin-bottom: 4px;
}

.contact-info-content p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Clickable contact info item */
.contact-info-link {
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-info-link:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(88, 101, 242, 0.3) !important;
}

.contact-info-link:hover .contact-info-icon {
    background: #5865f2 !important;
}

.contact-info-link:hover .contact-info-content h4 {
    color: #5865f2;
}

.contact-info-link:focus {
    outline: 2px solid #5865f2;
    outline-offset: 2px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 40px 16px;
    }
    
    .contact-form-wrapper {
        padding: 24px;
        border-radius: 16px;
    }
    
    .contact-form-title {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 32px;
        padding-top: 32px;
    }
    
    .contact-info-item {
        padding: 16px;
    }
    
    .contact-info-icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .contact-form-container {
        padding: 20px 12px;
    }
    
    .contact-form-wrapper {
        padding: 20px;
    }
    
    .contact-form-title {
        font-size: 1.75rem;
    }
    
    .contact-form-subtitle {
        font-size: 1rem;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
    
    .form-submit-btn {
        padding: 16px 24px;
        font-size: 1rem;
    }
}

/* Form Validation States */
.w-input.error,
.w-select.error {
    border-color: #ed4245 !important;
    background: rgba(237, 66, 69, 0.1) !important;
    box-shadow: 0 0 0 1px #ed4245 !important;
}

.w-input.success,
.w-select.success {
    border-color: #3ba55d !important;
    background: rgba(59, 165, 93, 0.1) !important;
    box-shadow: 0 0 0 1px #3ba55d !important;
}

/* Loading State */
.button-white.loading {
    pointer-events: none;
}

.button-white.loading .btn-text {
    opacity: 0.7;
}

.button-white.loading .btn-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Focus Styles for Accessibility */
.w-input:focus,
.w-select:focus,
.w-checkbox-input:focus {
    outline: 2px solid #5865f2 !important;
    outline-offset: 2px !important;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .contact-form-wrapper {
        border: 2px solid #ffffff;
    }
    
    .w-input,
    .w-select {
        border: 2px solid #ffffff !important;
        background: rgba(0, 0, 0, 0.8) !important;
    }
}

/* Cloudflare Turnstile Styling */
.cf-turnstile {
    margin: 16px 0;
    display: flex;
    justify-content: center;
}

/* Dark theme support for Turnstile */
.cf-turnstile iframe {
    filter: brightness(0.9);
}

/* Responsive Turnstile */
@media (max-width: 480px) {
    .cf-turnstile {
        margin: 12px 0;
    }
}
