/* ============================================
   SHARED FORM STYLES FOR BOTH FORMS
   ============================================ */

/* Form container styles */
.contact-form-btn {
    margin-top: 20px;
}

.btn-pdf {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-pdf:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-pdf:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-default {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-default:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-default:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Form field styles */
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Error state */
.error-border {
    border: 2px solid #dc3545 !important;
    background-color: #fff8f8;
}

/* Success/Error message */
#msgSubmit {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

#msgSubmit:not(.hidden) {
    display: block;
    animation: slideDown 0.4s ease;
}

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

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

.hidden {
    display: none;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive */
@media (max-width: 768px) {
    .form-control {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .btn-default {
        padding: 10px 25px;
        font-size: 14px;
    }
}

/* Help block for validation */
.help-block {
    font-size: 12px;
    margin-top: 5px;
}

.help-block .error {
    color: #dc3545;
}