/**
 * Modal Form Styles
 */

/* Pill Button Trigger */
.modal-form-trigger.btn-pill {
    display: inline-block;
    background-color: #0B3367;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-form-trigger.btn-pill:hover {
    background-color: #0CB1E1;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Modal Overlay */
.modal-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-form-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.modal-form-container {
    background-color: white;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: translateY(50px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow-y: auto;
}

.modal-form-container.active {
    transform: translateY(0);
    opacity: 1;
}

/* Close Button */
.modal-form-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0B3367;
    transition: color 0.3s ease;
    z-index: 10;
}

.modal-form-close:hover {
    color: #0CB1E1;
}

/* Modal Content */
.modal-form-content {
    padding: 30px;
}

.modal-form-title {
    color: #0B3367;
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.modal-form-description {
    margin-bottom: 25px;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Form Wrapper */
.modal-form-wrapper {
    margin-top: 20px;
}

/* Ninja Form Styles within Modal */
.modal-form-wrapper .nf-form-cont {
    margin: 0;
    max-width: 100%;
}

.modal-form-wrapper .nf-form-title,
.modal-form-wrapper .nf-before-form-content,
.modal-form-wrapper .nf-field-label {
    display: none;
}

.modal-form-wrapper .nf-element {
    border: 0px !important;
    font-size: 16px;
    font-weight: 400;
    border-radius: 0px !important;
    padding: 10px !important;
    background: transparent !important;
    width: 100% !important;
    border-bottom: 2px solid #0B3367 !important;
    transition: border-color 0.3s ease !important;
}

.modal-form-wrapper .nf-element:focus-within {
    border-bottom: 2px solid #0CB1E1 !important;
}

.modal-form-wrapper .nf-field input, 
.modal-form-wrapper .nf-field input::placeholder, 
.modal-form-wrapper .nf-field-element textarea, 
.modal-form-wrapper .nf-field-element textarea::placeholder {
    color: #0B3367 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    background: transparent !important;
}

.modal-form-wrapper .nf-field-container {
    margin-bottom: 20px !important;
    width: 100% !important;
    position: relative !important;
}

.modal-form-wrapper .nf-field-element textarea {
    height: 150px !important;
    padding: 10px 10px !important;
    border-radius: 0px !important;
    border-bottom: 2px solid #0B3367 !important;
    transition: border-color 0.3s ease !important;
}

.modal-form-wrapper .nf-field-element textarea:focus {
    border-bottom: 2px solid #0CB1E1 !important;
    outline: none !important;
}

.modal-form-wrapper .nf-field input:focus {
    outline: none !important;
}

.modal-form-wrapper .nf-field input[type="submit"] {
    background: #0B3367 !important;
    color: white !important;
    font-size: 18px !important;
    padding: 12px 25px !important;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.05em !important;
    border: 0px !important;
    transition: all linear 0.3s;
    margin-top: 10px;
    cursor: pointer;
    font-weight: 500 !important;
    border-radius: 50px !important;
    width: auto !important;
    display: inline-block !important;
    border-bottom: none !important;
}

.modal-form-wrapper .nf-field input[type="submit"]:hover {
    background: #0CB1E1 !important;
}

/* Fix for Ninja Forms validation messages */
.modal-form-wrapper .nf-error-msg {
    color: #e74c3c !important;
    font-size: 14px !important;
    margin-top: 5px !important;
}

/* Ensure form fields are properly spaced */
.modal-form-wrapper .nf-row {
    margin-bottom: 15px !important;
}

/* Ensure the form is responsive */
@media screen and (max-width: 768px) {
    .modal-form-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-form-content {
        padding: 20px;
    }
    
    .modal-form-title {
        font-size: 1.5rem;
    }
    
    .modal-form-description {
        font-size: 1rem;
    }
    
    .modal-form-wrapper .nf-field input[type="submit"] {
        font-size: 16px !important;
        padding: 10px 20px !important;
    }
    
    .modal-form-wrapper .nf-field-container {
        width: 100% !important;
    }
} 