/**
 * Event Registration Modal Styles
 */

/* Modal Overlay */
.gw-event-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.gw-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

/* Modal Container */
.gw-modal-container {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    margin: 5vh auto;
    background: white;
    border-radius: 0 60px 60px 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Modal Header */
.gw-modal-header {
    padding: 32px 40px 24px;
    background: linear-gradient(135deg, #24906b 0%, #6db460 100%);
    color: white;
    position: relative;
}

.gw-modal-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 40px 0 0;
    line-height: 1.3;
    color: white;
}

.gw-modal-close {
    position: absolute;
    top: 32px;
    right: 40px;
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    font-size: 32px;
    line-height: 1;
    font-weight: 300;
}

.gw-modal-close:hover {
    opacity: 0.7;
}

/* Modal Body */
.gw-modal-body {
    padding: 40px;
    overflow-y: auto;
    flex: 1;
}

/* WPForms Styling Override */
.gw-modal-body .wpforms-container {
    margin: 0;
}

.gw-modal-body .wpforms-field-label {
    font-weight: 600;
    color: #262474;
    margin-bottom: 8px;
}

.gw-modal-body .wpforms-field input[type="text"],
.gw-modal-body .wpforms-field input[type="email"],
.gw-modal-body .wpforms-field input[type="tel"],
.gw-modal-body .wpforms-field textarea,
.gw-modal-body .wpforms-field select {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.gw-modal-body .wpforms-field input[type="text"]:focus,
.gw-modal-body .wpforms-field input[type="email"]:focus,
.gw-modal-body .wpforms-field input[type="tel"]:focus,
.gw-modal-body .wpforms-field textarea:focus,
.gw-modal-body .wpforms-field select:focus {
    border-color: #1b60aa;
    outline: none;
}

.gw-modal-body .wpforms-submit-container {
    margin-top: 24px;
}

.gw-modal-body .wpforms-submit {
    background: linear-gradient(135deg, #262474 0%, #1b60aa 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.gw-modal-body .wpforms-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(36, 144, 107, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .gw-modal-container {
        width: 95%;
        max-height: 95vh;
        margin: 2.5vh auto;
        border-radius: 0 40px 40px 40px;
    }
    
    .gw-modal-header {
        padding: 24px 24px 20px;
    }
    
    .gw-modal-title {
        font-size: 22px;
        margin-right: 36px;
    }
    
    .gw-modal-close {
        top: 24px;
        right: 24px;
        width: 32px;
        height: 32px;
        font-size: 28px;
    }
    
    .gw-modal-body {
        padding: 24px;
    }
}