/* Custom Contact Form Styles */
.custom-contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.custom-contact-form h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9375rem;
}

.form-group label .required {
    color: #dc3545;
    margin-left: 0.25rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 161, 0.1);
}

.form-control::placeholder {
    color: #999;
}

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

.form-submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.form-submit-btn:hover {
    background-color: #d67e00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 146, 0, 0.3);
}

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

.form-submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    display: none;
}

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

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

.form-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.has-error .form-control {
    border-color: #dc3545;
}

.form-group.has-error .form-error {
    display: block;
}

.form-privacy {
    font-size: 0.875rem;
    color: var(--gray);
    margin-top: 1rem;
    line-height: 1.5;
}

.form-privacy a {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Loading State */
.form-submit-btn.loading {
    position: relative;
    color: transparent;
}

.form-submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .custom-contact-form {
        padding: 1.5rem;
    }
    
    .custom-contact-form h3 {
        font-size: 1.25rem;
    }
    
    .form-control {
        padding: 0.75rem;
        font-size: 0.9375rem;
    }
    
    .form-submit-btn {
        padding: 0.875rem 1.5rem;
    }
}
