/* Import Clubbercise Forms */
@import url('clubbercise-forms.css');

/* Modal Styles */
.clubbercise-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

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

.clubbercise-modal .modal-content {
    position: relative;
    margin: 2vh auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 96%;
    max-height: 90vh;
    overflow: visible;
    animation: modalSlideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
  background: linear-gradient(45deg, var(--clubbercise-blue), var(--clubbercise-hotpink));
  color: #fff;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e1e5e9;
  border-radius: 15px;
}

.modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close, .close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    font-size: 18px;
    font-weight: bold;
    z-index: 1000;
    position: relative;
}

.modal-close:hover, .close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.cancel-btn, .button.secondary {
    cursor: pointer;
    pointer-events: auto;
}

.modal-body {
    padding: 25px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.clubbercise-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.clubbercise-form input[type="text"],
.clubbercise-form input[type="email"],
.clubbercise-form input[type="tel"],
.clubbercise-form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #333;
    border-radius: 4px;
    background: #111;
    color: #fff;
    font-size: 14px;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.clubbercise-form input[type="text"]:focus,
.clubbercise-form input[type="email"]:focus,
.clubbercise-form input[type="tel"]:focus,
.clubbercise-form input[type="password"]:focus {
    outline: none;
    border-color: #CCFF00;
    box-shadow: 0 0 0 2px rgba(204, 255, 0, 0.2);
}

.clubbercise-form .file-upload-section {
    margin: 5px 0;
    padding: 20px;
    border: 2px dashed #333;
    border-radius: 6px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.clubbercise-form .file-upload-section:hover {
    border-color: #CCFF00;
}

.clubbercise-form .file-upload-section label {
    display: block;
    color: #CCFF00;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
}

.clubbercise-form input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 4px;
    background: #111;
    color: #fff;
    font-size: 12px;
    box-sizing: border-box;
}

.clubbercise-form .btn-submit {
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    background: #CCFF00 !important;
    color: #000 !important;
    width: 100%;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.clubbercise-form .btn-submit:hover {
    background: #b8e600 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(204, 255, 0, 0.3);
}

.clubbercise-form .btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-section {
    margin-bottom: 30px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
}

.section-title {
    background: #f8f9fa;
    margin: 0;
    padding: 34px 20px 15px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 16px;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-control[rows] {
    height: auto;
    min-height: 80px;
    resize: vertical;
}

.form-label {
    font-weight: 600;
    margin-bottom: 4px;
    color: #495057;
    font-size: 13px;
}

.form-label.required::after {
    content: " *";
    color: #dc3545;
}

.form-control {
    padding: 8px 10px;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    font-size: 13px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    height: 36px;
}

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

.form-control::placeholder {
    color: #6c757d;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 5px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.checkbox-label:hover {
    background: #f8f9fa;
}

.checkbox-label.special-options {

    padding: 12px;
    border-radius: 6px;
    border: 1px solid #bbdefb;
    font-weight: 500;
}

.checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #e1e5e9;
    border-radius: 3px;
    position: relative;
    transition: all 0.2s ease;
    display: inline-block;
}

.checkbox-input:checked + .checkbox-custom {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-input:checked + .checkbox-custom::after {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-footer {
    padding: 20px 25px;
    flex-shrink: 0;
    margin-top: auto;
    border-radius: 0 0 12px 12px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    align-items: center;
}

.button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    min-width: 100px;
    justify-content: center;
}

.button.primary {
    background: #667eea;
    color: white;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.button.primary:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

.button.secondary {
    background: #6c757d;
    color: white;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}

.button.secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.4);
}

.button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .clubbercise-modal .modal-content {
        margin: 0;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .form-columns {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-title {
        font-size: 18px;
    }
}
.clubbercise-form H3{
padding-top: 9px!important;
}
.class-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    position: relative;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal .close,
.modal .cancel-btn,
.modal-close {
    cursor: pointer;
    background: #ccc;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    margin-left: 10px;
}

.modal .close:hover,
.modal .cancel-btn:hover,
.modal-close:hover {
    background: #999;
}

body.modal-open {
    overflow: hidden;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}