/* Contact Form Pro - Frontend Styles */

.cfp-form-wrapper {
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cfp-form-title {
    margin: 0 0 25px 0;
    font-size: 28px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.cfp-contact-form {
    width: 100%;
}

.cfp-form-row {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
}

.cfp-form-group {
    flex: 1;
}

.cfp-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.cfp-required {
    color: #e74c3c;
}

.cfp-input,
.cfp-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.cfp-input:focus,
.cfp-textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.cfp-textarea {
    resize: vertical;
    min-height: 120px;
}

.cfp-submit-button {
    width: 100%;
    padding: 14px 30px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cfp-submit-button:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.cfp-submit-button:active {
    transform: translateY(0);
}

.cfp-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.cfp-button-loading {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cfp-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: cfp-spin 0.8s linear infinite;
}

@keyframes cfp-spin {
    to { transform: rotate(360deg); }
}

/* Messages */
.cfp-messages {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 4px;
    font-size: 14px;
}

.cfp-messages.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cfp-messages.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* reCAPTCHA */
.cfp-recaptcha {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* Honeypot - Keep hidden */
.cfp-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Responsive */
@media (max-width: 768px) {
    .cfp-form-wrapper {
        padding: 20px;
        margin: 20px 15px;
    }
    
    .cfp-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .cfp-form-title {
        font-size: 24px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .cfp-form-wrapper {
        background: #1e1e1e;
        color: #e0e0e0;
    }
    
    .cfp-form-title {
        color: #ffffff;
    }
    
    .cfp-label {
        color: #cccccc;
    }
    
    .cfp-input,
    .cfp-textarea {
        background: #2a2a2a;
        border-color: #444;
        color: #e0e0e0;
    }
    
    .cfp-input:focus,
    .cfp-textarea:focus {
        border-color: #0096c7;
    }
}
