@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
    --moh-green: #018a60;
    --moh-green-light: #4caf50;
    --moh-green-dark: #016b4a;
    --moh-gold: #958a5f;
    --sidebar-width: 280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Tajawal', sans-serif;
    background: linear-gradient(135deg, #f0f9f4 0%, #e3f2e8 50%, #d4edda 100%);
    min-height: 100vh;
}

/* ===== TERMS MODAL ===== */
.terms-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.terms-modal-container {
    background: white;
    border-radius: 30px;
    max-width: 750px;
    width: 65%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 30px 100px rgba(1, 102, 71, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

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

.terms-modal-header {
    background: linear-gradient(135deg, #018a60 0%, #016b4a 100%);
    padding: 30px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.terms-modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.terms-header-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.terms-header-icon i {
    font-size: 32px;
    color: white;
}

.terms-modal-title {
    color: white;
    font-size: 26px;
    font-weight: 800;
    margin: 0;
    position: relative;
    z-index: 1;
}

.terms-modal-content {
    padding: 30px 30px;
    max-height: calc(85vh - 300px);
    overflow-y: auto;
}

.terms-modal-content::-webkit-scrollbar {
    width: 8px;
}

.terms-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.terms-modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #018a60, #4caf50);
    border-radius: 10px;
}

.terms-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.term-item {
    background: #f8f9fa;
    padding: 15px 20px;
    margin-bottom: 12px;
    border-radius: 12px;
    border-right: 4px solid #018a60;
    display: flex;
    align-items: start;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.term-item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #018a60, #4caf50);
    transition: width 0.3s ease;
}

.term-item:hover {
    background: #e8f5e9;
    transform: translateX(-5px);
    box-shadow: 0 5px 20px rgba(1, 138, 96, 0.15);
}

.term-item:hover::before {
    width: 100%;
    opacity: 0.05;
}

.term-number {
    min-width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #018a60, #4caf50);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(1, 138, 96, 0.3);
    flex-shrink: 0;
}

.term-text {
    flex: 1;
    color: #2d3748;
    font-size: 15px;
    line-height: 1.7;
    font-weight: 500;
}

.terms-info-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-right: 4px solid #2196f3;
    border-radius: 12px;
    padding: 15px 20px;
    margin: 20px 0;
    display: flex;
    align-items: start;
    gap: 12px;
}

.terms-info-icon {
    width: 35px;
    height: 35px;
    background: #2196f3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.terms-info-text {
    flex: 1;
    color: #1565c0;
    line-height: 1.6;
    font-weight: 600;
    font-size: 14px;
}

.terms-warning-box {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-right: 4px solid #ff9800;
    border-radius: 12px;
    padding: 15px 20px;
    margin: 20px 0;
    display: flex;
    align-items: start;
    gap: 12px;
}

.terms-warning-icon {
    width: 35px;
    height: 35px;
    background: #ff9800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.terms-warning-text {
    flex: 1;
    color: #e65100;
    line-height: 1.6;
    font-weight: 600;
    font-size: 14px;
}

.terms-acceptance {
    background: #fff3cd;
    padding: 16px;
    border-radius: 12px;
    margin: 20px 0;
    border-right: 4px solid #ffc107;
}

.terms-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
}

.terms-checkbox-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #018a60;
}

.terms-start-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #018a60 0%, #016b4a 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 700;
    cursor: not-allowed;
    opacity: 0.5;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.terms-start-btn.active {
    cursor: pointer;
    opacity: 1;
    box-shadow: 0 10px 40px rgba(1, 138, 96, 0.3);
}

.terms-start-btn.active:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(1, 138, 96, 0.4);
}

/* ===== FULL MESSAGE (Poll Full) ===== */
.full-message-container {
    background: white;
    border-radius: 30px;
    box-shadow: 0 25px 80px rgba(1, 138, 96, 0.2);
    padding: 60px 50px;
    text-align: center;
    max-width: 550px;
    position: relative;
    overflow: hidden;
}

.full-message-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #018a60, #4caf50, #81c784);
}

.full-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    animation: bounce 2s ease-in-out infinite;
}

.full-icon i { font-size: 50px; color: white; }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.full-title { font-size: 32px; font-weight: 800; color: #2d3748; margin-bottom: 15px; }
.full-text { font-size: 18px; color: #666; line-height: 1.8; margin-bottom: 30px; }

.stats-box {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
}

.stats-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #018a60, #4caf50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-label { font-size: 16px; color: #666; margin-top: 10px; }

.back-btn {
    background: linear-gradient(135deg, #018a60 0%, #016b4a 100%);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(1, 138, 96, 0.3);
}

.back-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(1, 138, 96, 0.4);
    color: white;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: white;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    background: linear-gradient(135deg, var(--moh-green) 0%, var(--moh-green-dark) 100%);
    padding: 25px 20px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-logo {
    max-width: 140px;
    height: auto;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

.sidebar-title {
    color: white;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
}

.progress-circle-container {
    padding: 30px 20px;
    text-align: center;
    background: linear-gradient(180deg, #f8fdf9 0%, white 100%);
    border-bottom: 1px solid #e8f5e9;
    flex-shrink: 0;
}

.progress-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    position: relative;
}

.progress-circle svg {
    transform: rotate(-90deg);
    width: 120px;
    height: 120px;
}

.progress-circle-bg {
    fill: none;
    stroke: #e8f5e9;
    stroke-width: 8;
}

.progress-circle-fill {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 0.5s ease;
}

.progress-percent-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    font-weight: 800;
    color: var(--moh-green);
}

.progress-label {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.sections-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px 15px;
}

.sections-list::-webkit-scrollbar {
    width: 4px;
}

.sections-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sections-list::-webkit-scrollbar-thumb {
    background: var(--moh-green-light);
    border-radius: 4px;
}

.section-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8fdf9;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.section-item:hover {
    background: white;
    border-color: var(--moh-green-light);
    transform: translateX(-5px);
}

.section-item.active {
    background: white;
    border-color: var(--moh-green);
    box-shadow: 0 5px 20px rgba(1, 138, 96, 0.15);
}

.section-item.completed {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.section-number {
    width: 32px;
    height: 32px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--moh-green);
    margin-left: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.section-item.active .section-number {
    background: var(--moh-green);
    color: white;
}

.section-item.completed .section-number {
    background: var(--moh-green);
    color: white;
}

.section-item.completed .section-number::after {
    content: '✓';
}

.section-item.completed .section-number span {
    display: none;
}

.section-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.section-item.active .section-name {
    color: var(--moh-green);
}

.section-progress {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: #e8f5e9;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

.section-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--moh-green), var(--moh-green-light));
    width: 0%;
    transition: width 0.3s ease;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-right: var(--sidebar-width);
    min-height: 100vh;
}

.main-header {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-top-accent {
    height: 6px;
    background: linear-gradient(90deg, var(--moh-green), var(--moh-green-light), var(--moh-gold));
}

.logo-section {
    padding: 25px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.moh-logo {
    max-width: 200px;
    height: auto;
}

.event-logo {
    max-width: 160px;
    height: auto;
}

.poll-header {
    background: linear-gradient(135deg, var(--moh-green) 0%, var(--moh-green-dark) 100%);
    padding: 40px 20px;
    text-align: center;
    position: relative;
}

.poll-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.poll-title {
    font-size: 32px;
    font-weight: 800;
    color: white;
    position: relative;
    z-index: 1;
    line-height: 1.5;
}

.header-decoration {
    width: 80px;
    height: 5px;
    background: var(--moh-gold);
    margin: 20px auto 0;
    border-radius: 3px;
    position: relative;
    z-index: 1;
}

.event-details-wrapper {
    background: white;
    border-bottom: 3px solid var(--moh-gold);
}

.event-details {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0;
}

.event-card {
    padding: 20px 15px;
    text-align: center;
    border-left: 1px solid #eee;
    transition: all 0.3s ease;
}

.event-card:last-child { border-left: none; }
.event-card:hover { background: #f8fdf9; }

.event-card-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--moh-green), var(--moh-green-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: white;
    font-size: 18px;
}

.event-card-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.event-card-value {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.form-container {
    max-width: 850px;
    margin: 30px auto;
    padding: 0 20px 40px;
}

.form-card {
    background: white;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(1, 138, 96, 0.12);
    overflow: hidden;
}

.section-header {
    background: linear-gradient(135deg, var(--moh-green) 0%, var(--moh-green-dark) 100%);
    padding: 18px 25px;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--moh-gold);
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.question-wrapper {
    padding: 25px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
}

.question-wrapper:hover { background: #fafffe; }

.question-wrapper.answered {
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.05) 0%, transparent 100%);
}

.question-wrapper.answered::after {
    content: '✓';
    position: absolute;
    left: 20px;
    top: 25px;
    width: 28px;
    height: 28px;
    background: var(--moh-green-light);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.question-title {
    font-size: 17px;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.7;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.question-text {
    flex: 1;
    display: flex;
    align-items: flex-start;
}

.question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--moh-green), var(--moh-green-light));
    color: white;
    font-weight: 700;
    font-size: 13px;
    border-radius: 8px;
    margin-left: 12px;
    flex-shrink: 0;
}

.required-star {
    color: #f44336;
    font-size: 22px;
    margin-right: 15px;
    flex-shrink: 0;
    line-height: 1;
}

.options-grid {
    display: grid;
    gap: 10px;
}

.option-item {
    position: relative;
}

.option-item input[type="radio"],
.option-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #f8fdf9;
    border: 2px solid #e8f5e9;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.option-label:hover {
    border-color: var(--moh-green);
    background: white;
    transform: translateX(-5px);
}

.option-item input:checked + .option-label {
    border-color: var(--moh-green);
    background: white;
    box-shadow: 0 5px 20px rgba(1, 138, 96, 0.15);
}

.option-item input:checked + .option-label::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--moh-green);
    border-radius: 12px 0 0 12px;
}

.option-radio {
    width: 22px;
    height: 22px;
    border: 3px solid #ccc;
    border-radius: 50%;
    margin-left: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.option-item input:checked + .option-label .option-radio {
    border-color: var(--moh-green);
    background: var(--moh-green);
}

.option-item input:checked + .option-label .option-radio::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.option-text {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    line-height: 1.5;
}

.option-item input:checked + .option-label .option-text {
    color: var(--moh-green);
    font-weight: 600;
}

.rating-grid {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.rating-item { position: relative; }
.rating-item input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.rating-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 22px;
    background: white;
    border: 3px solid #e8f5e9;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 95px;
}

.rating-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.rating-emoji {
    font-size: 40px;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.rating-card:hover .rating-emoji { transform: scale(1.2); }

.rating-text {
    font-size: 13px;
    font-weight: 700;
    color: #666;
}

.rating-excellent .rating-card { border-color: #4caf50; }
.rating-excellent input:checked + .rating-card { background: #e8f5e9; box-shadow: 0 5px 20px rgba(76, 175, 80, 0.3); }
.rating-excellent .rating-text { color: #4caf50; }

.rating-acceptable .rating-card { border-color: #ff9800; }
.rating-acceptable input:checked + .rating-card { background: #fff8e1; box-shadow: 0 5px 20px rgba(255, 152, 0, 0.3); }
.rating-acceptable .rating-text { color: #ff9800; }

.rating-weak .rating-card { border-color: #f44336; }
.rating-weak input:checked + .rating-card { background: #ffebee; box-shadow: 0 5px 20px rgba(244, 67, 54, 0.3); }
.rating-weak .rating-text { color: #f44336; }

.rating-appropriate .rating-card { border-color: #4caf50; }
.rating-appropriate input:checked + .rating-card { background: #e8f5e9; }
.rating-appropriate .rating-text { color: #4caf50; }

.rating-long .rating-card { border-color: #ff9800; }
.rating-long input:checked + .rating-card { background: #fff8e1; }
.rating-long .rating-text { color: #ff9800; }

.rating-short .rating-card { border-color: #2196f3; }
.rating-short input:checked + .rating-card { background: #e3f2fd; }
.rating-short .rating-text { color: #2196f3; }

.other-text-container {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border-radius: 12px;
    display: none;
    animation: slideDown 0.3s ease;
}

.other-text-container.show { display: block; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.other-text-label {
    font-size: 14px;
    font-weight: 600;
    color: #f57c00;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.other-text-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ffcc80;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Tajawal', sans-serif;
    background: white;
    transition: all 0.3s ease;
}

.other-text-input:focus {
    outline: none;
    border-color: #ff9800;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

.modern-input,
.modern-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8f5e9;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Tajawal', sans-serif;
    transition: all 0.3s ease;
    background: #fafffe;
}

.modern-input:focus,
.modern-textarea:focus {
    outline: none;
    border-color: var(--moh-green);
    background: white;
    box-shadow: 0 0 0 4px rgba(1, 138, 96, 0.1);
}

.modern-textarea {
    min-height: 120px;
    resize: vertical;
}

.input-hint {
    font-size: 13px;
    color: #888;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.input-hint i { color: var(--moh-green); }

.submit-section {
    padding: 35px 25px;
    background: linear-gradient(180deg, white 0%, #f8fdf9 100%);
    text-align: center;
}

.submit-btn {
    background: linear-gradient(135deg, var(--moh-green) 0%, var(--moh-green-dark) 100%);
    color: white;
    border: none;
    padding: 18px 60px;
    font-size: 19px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(1, 138, 96, 0.3);
    font-family: 'Tajawal', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(1, 138, 96, 0.4);
}

.submit-btn i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.submit-btn:hover i { transform: translateX(-5px); }

#loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.loading-content { text-align: center; color: white; }

.loading-animation {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    position: relative;
}

.loading-animation::before,
.loading-animation::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.loading-animation::before {
    width: 70px;
    height: 70px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    animation: spin 1s linear infinite;
}

.loading-animation::after {
    width: 50px;
    height: 50px;
    top: 10px;
    left: 10px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-bottom-color: var(--moh-gold);
    animation: spin 0.8s linear infinite reverse;
}

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

.loading-text { font-size: 20px; font-weight: 700; }

#result-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10001;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.result-card {
    background: white;
    border-radius: 25px;
    padding: 45px 35px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--moh-green), var(--moh-green-light), var(--moh-gold));
}

.result-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 42px;
}

.result-icon.excellent {
    background: linear-gradient(135deg, #4caf50, #81c784);
    color: white;
    box-shadow: 0 10px 40px rgba(76, 175, 80, 0.4);
}

.result-icon.good {
    background: linear-gradient(135deg, #2196f3, #64b5f6);
    color: white;
    box-shadow: 0 10px 40px rgba(33, 150, 243, 0.4);
}

.result-icon.fair {
    background: linear-gradient(135deg, #ff9800, #ffb74d);
    color: white;
    box-shadow: 0 10px 40px rgba(255, 152, 0, 0.4);
}

.result-icon.poor {
    background: linear-gradient(135deg, #f44336, #e57373);
    color: white;
    box-shadow: 0 10px 40px rgba(244, 67, 54, 0.4);
}

.result-title { font-size: 26px; font-weight: 800; color: #333; margin-bottom: 10px; }

.result-score { font-size: 55px; font-weight: 900; margin: 15px 0; }
.result-score.excellent { color: #4caf50; }
.result-score.good { color: #2196f3; }
.result-score.fair { color: #ff9800; }
.result-score.poor { color: #f44336; }

.result-message { font-size: 16px; color: #666; line-height: 1.7; margin-bottom: 25px; }

.result-details {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 25px;
}

.result-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #ddd;
}

.result-detail-row:last-child { border: none; }
.result-detail-label { font-weight: 600; color: #666; }
.result-detail-value { font-weight: 700; color: #333; }

.result-btn {
    background: linear-gradient(135deg, var(--moh-green) 0%, var(--moh-green-dark) 100%);
    color: white;
    border: none;
    padding: 14px 45px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

.result-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(1, 138, 96, 0.3);
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% { transform: translateY(-100px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(500px) rotate(720deg); opacity: 0; }
}

.validation-error {
    border-color: #f44336 !important;
    background: #ffebee !important;
}

.sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--moh-green), var(--moh-green-dark));
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 5px 25px rgba(1, 138, 96, 0.4);
    transition: all 0.3s ease;
}

.sidebar-toggle:hover { transform: scale(1.1); }

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-right: 0; }
    .sidebar-toggle { display: flex; align-items: center; justify-content: center; }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .sidebar-overlay.show { display: block; }
}

@media (max-width: 768px) {
    .logo-section { gap: 15px; padding: 15px; }
    .moh-logo { max-width: 160px; }
    .event-logo { max-width: 120px; }
    .poll-title { font-size: 24px; }
    .poll-header { padding: 30px 15px; }
    .form-container { padding: 0 15px 30px; margin: 20px auto; }
    .question-wrapper { padding: 20px; }
    .question-title { font-size: 15px; }
    .rating-grid { gap: 8px; }
    .rating-card { padding: 14px 16px; min-width: 80px; }
    .rating-emoji { font-size: 32px; }
    .submit-btn { padding: 16px 45px; font-size: 17px; }
    .event-details { grid-template-columns: 1fr; }
    .event-card { border-left: none; border-bottom: 1px solid #eee; }
    .event-card:last-child { border-bottom: none; }
    
    .terms-modal-container {
        width: 98%;
        max-height: 95vh;
    }
    
    .terms-modal-content {
        padding: 25px 20px;
    }
    
    .term-item {
        padding: 15px 18px;
    }
    
    .term-number {
        min-width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .term-text {
        font-size: 15px;
    }
}
