:root {
    --primary-color: #081F40;
    --secondary-color: #13DDBB;
    --overlay-color: #6098e924;
    --teal-color: #00bf9f;
    --error-bg: #ffd9d9;
    --error-color: #ae0000;
    --success-bg: #dcf3cb;
    --success-color: #40810e;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: var(--primary-color);
    color: var(--primary-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.strong {
    font-weight: 900;
}

label {
    display: block;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

input {
    direction: rtl;
    width: 93%;
    padding: 10px;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--overlay-color);
}

select {
    direction: rtl;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #ffffff;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

select:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--overlay-color);
}

.container {
    background: #ffffff;
    border-radius: 12px;
    /* box-shadow: 0 8px 32px rgba(17, 103, 235, 0.1); */
    padding: 40px;
    width: 100%;
    max-width: 450px;
}

.loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--overlay-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.header {
    text-align: center;
    /* margin-bottom: 30px; */
}

.header h1 {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.header p {
    color: #505050;
    font-size: 14px;
}

.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}


.btn {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #0a2a5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 31, 64, 0.4);
}

.btn-primary-outline {
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-primary-outline:hover {
    background: var(--overlay-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--overlay-color);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--teal-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--overlay-color);
}

.logo {
    width: 160px;
    height: auto;
    margin: 0 auto 5px;
    display: block;
    /* border-radius: 8px; */
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.logo-secondary {
    width: 80px;
    display: none;
}

.step {
    display: none;
}

.step.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.radio-option input[type="radio"] {
    width: auto;
    margin: 0;
    accent-color: var(--primary-color);
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    padding: 8px 0;
    width: auto;
    text-align: right;
    display: block;
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: var(--teal-color);
    text-decoration: none;
}

.error {
    background: var(--error-bg);
    color: var(--error-color);
    padding: 12px;
    border-radius: 8px;
    border-right: 4px solid var(--error-color);
    margin-bottom: 20px;
    font-size: 14px;
}

.success {
    background: var(--success-bg);
    color: var(--success-color);
    padding: 12px;
    border-radius: 8px;
    border-right: 4px solid var(--success-color);
    margin-bottom: 20px;
    font-size: 14px;
}

.required {
    color: var(--error-color);
}

.field-error {
    color: var(--error-color);
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.code-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    direction: ltr;
}

.code-inputs input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    padding: 0;
}

.class-option {
    padding: 8px;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    background: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    text-align: center;
    color: var(--primary-color);
}

.class-option:hover,
.class-option.selected {
    background: var(--overlay-color);
}

.registration-section {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 15px;
}

.accordion-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.accordion-header:hover {
    background: #e9ecef;
}

.accordion-icon {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.accordion-icon.open {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

.accordion-content.open {
    max-height: 1000px;
    padding: 15px 20px;
}

.audience-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 20px;
    margin: 20px -20px;
    border-right: 4px solid var(--primary-color);
    font-weight: 600;
    color: var(--primary-color);
    font-size: 16px;
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dee2e6;
    transition: all 0.3s ease;
}

.step-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.step-dot.completed {
    background: var(--success-color);
}

.btn-remove {
    background: var(--error-color);
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background: #8b0000;
    transform: translateY(-1px);
}

.star-decoration {
    position: fixed;
    pointer-events: none;
    z-index: -1;
    filter: blur(4px);
    opacity: 0.6;
}

.star-1 {
    top: -78px;
    right: 5px;
    width: 200px;
    height: 200px;
}

.star-2 {
    bottom: 185px;
    left: -90px;
    width: 200px;
    height: 200px;
}

.star-3 {
    bottom: -12px;
    left: -16px;
    width: 200px;
    height: 200px;
}

.star-4 {
    bottom: -55px;
    left: 178px;
    width: 200px;
    height: 200px;
}

.star-5 {
    bottom: -139px;
    left: 377px;
    width: 200px;
    height: 200px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: block;
}

.modal-content h2 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.modal-content p {
    color: #505050;
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
}

.modal-buttons .btn {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 30px 20px;
    }

    .modal-icon {
        width: 60px;
        height: 60px;
    }

    .modal-content h2 {
        font-size: 20px;
    }

    .modal-content p {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .star-decoration {
        filter: blur(3px);
    }

    .star-1 {
        top: -40px;
        right: 5px;
        width: 100px;
        height: 100px;
    }

    .star-2 {
        bottom: 100px;
        left: -45px;
        width: 100px;
        height: 100px;
    }

    .star-3 {
        bottom: -6px;
        left: -8px;
        width: 100px;
        height: 100px;
    }

    .star-4 {
        bottom: -28px;
        left: 90px;
        width: 100px;
        height: 100px;
    }

    .star-5 {
        bottom: -70px;
        left: 190px;
        width: 100px;
        height: 100px;
    }
}

/* Registration type buttons */
.reg-buttons-row {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.reg-big-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 10px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.reg-big-btn i {
    font-size: 32px;
    color: var(--primary-color);
}

.reg-big-btn-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
}

.reg-big-btn-sub {
    font-size: 12px;
    color: #666;
}

.reg-big-btn:hover {
    border-color: var(--secondary-color);
    background: #eef9f7;
}

.reg-big-btn.active {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, #e8faf6 0%, #d4f5ee 100%);
    box-shadow: 0 4px 12px rgba(19, 221, 187, 0.2);
}

.reg-big-btn.active i {
    color: var(--teal-color);
}

.reg-panel {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    animation: fadeIn 0.3s ease;
}