/* Screen reader only utility */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Form Container */
.acf-contact-form-container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 20px 0;
    background: none !important;
    border-radius: 0;
    box-shadow: none;
    font-family: inherit;
    backdrop-filter: none;
    border: none;
    box-sizing: border-box;
}

/* Form Title */
.acf-form-title {
    margin: 0 0 25px 0;
    font-size: 24px;
    font-weight: 300;
    color: #ffffff;
    text-align: center;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

/* Form Description */
.acf-form-description {
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    line-height: 1.5;
    font-size: 14px;
}

.acf-form-description p {
    margin: 0 0 10px 0;
}

/* Form Fields */
.acf-form-fields {
    margin-bottom: 30px;
}

.acf-form-field {
    margin-bottom: 20px;
}

.acf-field-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.acf-required {
    color: #ff6b6b;
    margin-left: 3px;
}

.acf-field-input,
.acf-field-textarea {
    width: 100%;
    padding: 14px 0;
    border: none;
    border-bottom: 1px solid #ffffff;
    border-radius: 0;
    font-size: 16px;
    font-family: inherit;
    background: transparent;
    color: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.acf-field-input::placeholder,
.acf-field-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.acf-field-input:focus,
.acf-field-textarea:focus {
    outline: none;
    border-bottom-color: #ffffff;
    border-bottom-width: 2px;
    background: transparent;
    box-shadow: none;
}

.acf-field-input.error,
.acf-field-textarea.error {
    border-bottom-color: #ff6b6b;
}

.acf-field-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

/* Field Errors */
.acf-field-error {
    margin-top: 6px;
    color: #ff6b6b;
    font-size: 13px;
    font-weight: 400;
    display: none;
}

.acf-field-error.show {
    display: block;
}

/* Messages */
.acf-form-message {
    margin-bottom: 20px;
    padding: 16px 20px;
    border-radius: 6px;
    font-weight: 400;
    animation: slideIn 0.3s ease;
}

.acf-success-message {
    background: rgba(40, 167, 69, 0.2);
    color: #ffffff;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.acf-error-message {
    background: rgba(220, 53, 69, 0.2);
    color: #ffffff;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.acf-message-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.acf-icon-success,
.acf-icon-error {
    flex-shrink: 0;
}

/* Submit Button */
.acf-form-submit {
    text-align: center;
}

.acf-submit-btn {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 400;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    letter-spacing: 0.5px;
}

.acf-submit-btn:hover {
    background: linear-gradient(135deg, #357abd, #2968a3);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.3);
}

.acf-submit-btn:active {
    transform: translateY(0);
}

.acf-submit-btn:disabled {
    background: rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.acf-submit-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

/* Loading State */
.acf-btn-loading {
    display: none !important;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.acf-spinner {
    animation: spin 1s linear infinite;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .acf-contact-form-container {
        margin: 20px;
        padding: 25px;
        border-radius: 8px;
    }
    
    .acf-form-title {
        font-size: 22px;
    }
    
    .acf-field-input,
    .acf-field-textarea {
        padding: 12px 16px;
        font-size: 16px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .acf-field-input,
    .acf-field-textarea,
    .acf-submit-btn {
        transition: none;
    }
    
    .acf-form-message {
        animation: none;
    }
    
    .acf-spinner {
        animation: none;
    }
}
