/* Custom Enquiry Form Styles */
.cef-form-container {
    max-width: 700px;
    margin: 40px auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

.cef-form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

.cef-form-header h2 {
    margin: 20px 0 10px 0;
    font-size: 32px;
    font-weight: 600;
}

.cef-form-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

.cef-logo {
    margin-bottom: 20px;
}

.cef-site-logo {
    max-width: 120px;
    height: auto;
    filter: brightness(0) invert(1);
}

.cef-logo h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.cef-form {
    padding: 40px;
}

.cef-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.cef-form-col {
    flex: 1;
}

.cef-form-group {
    position: relative;
    margin-bottom: 30px;
}

.cef-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2d3748;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cef-input, .cef-textarea {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8fafc;
    box-sizing: border-box;
}

.cef-input:focus, .cef-textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.cef-textarea {
    min-height: 150px;
    resize: vertical;
    font-family: inherit;
    padding-top: 20px;
}

.cef-icon {
    position: absolute;
    left: 15px;
    top: 40px;
    font-size: 18px;
    opacity: 0.5;
}

.cef-form-submit {
    text-align: center;
    margin-top: 40px;
}

.cef-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cef-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.cef-btn-text {
    letter-spacing: 0.5px;
}

.cef-btn-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.cef-submit-btn:hover .cef-btn-icon {
    transform: translateX(5px);
}

.cef-required-note {
    font-size: 13px;
    color: #718096;
    margin-top: 10px;
}

.cef-success-message {
    background: #f0fff4;
    border: 2px solid #68d391;
    border-radius: 10px;
    padding: 25px;
    margin: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    animation: fadeIn 0.5s ease;
}

.cef-success-icon {
    background: #68d391;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

.cef-success-content h3 {
    margin: 0 0 5px 0;
    color: #2f855a;
}

.cef-success-content p {
    margin: 0;
    color: #38a169;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cef-form-container {
        margin: 20px;
        border-radius: 12px;
    }
    
    .cef-form {
        padding: 25px;
    }
    
    .cef-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .cef-form-header {
        padding: 30px 20px;
    }
    
    .cef-form-header h2 {
        font-size: 26px;
    }
    
    .cef-success-message {
        flex-direction: column;
        text-align: center;
        margin: 20px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Error states */
.cef-input:invalid, .cef-textarea:invalid {
    border-color: #fc8181;
}

.cef-input:invalid:focus, .cef-textarea:invalid:focus {
    box-shadow: 0 0 0 3px rgba(252, 129, 129, 0.1);
}

/* Focus states for accessibility */
.cef-input:focus-visible, .cef-textarea:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Loading state for submit button */
.cef-submit-btn.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

.cef-submit-btn.loading .cef-btn-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}