/* Custom Fields Styling for Contact Form */
.contact-form .contact-form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.contact-form .contact-column-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
    margin-bottom: 20px;
}

.contact-form .contact-column-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 15px;
    margin-bottom: 20px;
}

.contact-form .contact-form-group {
    margin-bottom: 20px;
}

.contact-form .contact-form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e5e9;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.contact-form .contact-form-input:focus {
    border-color: var(--primary-color, #206bc4);
    outline: none;
    box-shadow: 0 0 0 3px rgba(32, 107, 196, 0.1);
}

.contact-form .contact-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

/* Custom Field Specific Styles */
.contact-form select.contact-form-input {
    cursor: pointer;
}

.contact-form textarea.contact-form-input {
    min-height: 120px;
    resize: vertical;
}

.contact-form input[type="checkbox"].contact-form-input {
    margin-right: 8px;
}

.contact-form input[type="radio"].contact-form-input {
    width: auto;
    margin-right: 5px;
}

.contact-form .radio-group,
.contact-form .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form .radio-option,
.contact-form .checkbox-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-form .contact-column-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .contact-form .contact-form-row {
        margin: 0;
    }
    
    .contact-form .contact-column-6,
    .contact-form .contact-column-12 {
        padding: 0;
    }
}

/* Modern Button Styling - Gradient background with hover effects */
.contact-form .contact-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

/* Shine Effect Overlay - Creates sliding light effect on hover */
.contact-form .contact-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    transition: left 0.5s ease;
}

/* Hover State - Button lifts up with color reversal */
.contact-form .contact-button:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Shine Animation on Hover */
.contact-form .contact-button:hover::before {
    left: 100%;
}

/* Active State - Click feedback */
.contact-form .contact-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

/* Focus State - Accessibility and keyboard navigation */
.contact-form .contact-button:focus {
    outline: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3), 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Theme Button Override - Ensures consistent styling for theme buttons */
.contact-form .form-actions .btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

/* Shine Effect for Theme Button */
.contact-form .form-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    transition: left 0.5s ease;
}

/* Theme Button Hover Effects */
.contact-form .form-actions .btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Theme Button Shine Animation */
.contact-form .form-actions .btn:hover::before {
    left: 100%;
}

/* Theme Button Active State */
.contact-form .form-actions .btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

/* Theme Button Focus State */
.contact-form .form-actions .btn:focus {
    outline: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3), 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Error and Success Messages */
.contact-form .contact-message {
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.contact-form .contact-success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-form .contact-error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
