/**
 * Officers Academy Reviews - Frontend Stylesheet
 * Brand Colors: Military Green (#14532d), Gold (#d97706), Crisp Slate (#0f172a)
 */

.oa-reviews-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.oa-reviews-wrapper * {
    box-sizing: border-box;
}

/* 1. Trust Header & Badges */
.oa-trust-header {
    background: linear-gradient(135deg, #0b381e 0%, #14532d 50%, #1e3a29 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 35px 30px 30px 30px;
    box-shadow: 0 10px 25px -5px rgba(20, 83, 45, 0.25);
    margin-bottom: 30px;
}

.oa-academy-tagline {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #fef08a;
    margin-bottom: 16px;
}

.oa-academy-tagline .oa-shield-icon {
    margin-right: 6px;
}

.oa-main-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 28px;
}

.oa-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.oa-subtitle {
    font-size: 15px;
    color: #d1fae5;
    margin: 0;
    max-width: 680px;
    line-height: 1.5;
}

.oa-btn-write-review {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff !important;
    border: none;
    padding: 13px 24px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    white-space: nowrap;
}

.oa-btn-write-review:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
}

/* Trust Badges Grid */
.oa-trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 22px;
}

.oa-trust-badge-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 12px 16px;
    border-radius: 12px;
    gap: 14px;
}

.oa-badge-icon {
    font-size: 26px;
    line-height: 1;
}

.oa-badge-info strong {
    display: block;
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 2px;
}

.oa-badge-info span {
    font-size: 12px;
    color: #a7f3d0;
}

/* 2. Course Filter Tabs */
.oa-filter-tabs-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.oa-filter-label {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.oa-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.oa-filter-btn {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.oa-filter-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.oa-filter-btn.active {
    background: #14532d;
    color: #ffffff;
    border-color: #14532d;
    box-shadow: 0 2px 8px rgba(20, 83, 45, 0.25);
}

/* 3. Reviews Grid */
.oa-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.oa-review-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.oa-review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 18px -3px rgba(0, 0, 0, 0.08);
}

.oa-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.oa-student-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.oa-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #166534 0%, #15803d 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(22, 101, 52, 0.3);
}

.oa-student-name {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 3px 0;
}

.oa-verified-tick {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #16a34a;
}

.oa-review-num-tag {
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.oa-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.oa-course-tag {
    background: #ecfdf5;
    color: #065f46;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #a7f3d0;
}

.oa-stars-row {
    color: #cbd5e1;
    font-size: 17px;
    letter-spacing: 1px;
}

.oa-stars-row .oa-star.filled {
    color: #f59e0b;
}

.oa-card-body {
    flex-grow: 1;
    margin-bottom: 16px;
}

.oa-review-text {
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
    margin: 0;
    font-style: normal;
}

.oa-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #94a3b8;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.oa-receipt-masked {
    font-family: monospace;
    background: #f8fafc;
    padding: 2px 6px;
    border-radius: 4px;
    color: #64748b;
}

.oa-no-reviews-box {
    grid-column: 1 / -1;
    text-align: center;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    padding: 40px;
    border-radius: 12px;
    color: #64748b;
    font-size: 15px;
}

/* 4. Modal Styles */
.oa-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 15px;
}

.oa-modal-container {
    background: #ffffff;
    width: 100%;
    max-width: 540px;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.25);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: oaFadeInUp 0.25s ease-out;
}

@keyframes oaFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.oa-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: #f1f5f9;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.oa-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.oa-modal-header {
    margin-bottom: 22px;
}

.oa-modal-badge {
    display: inline-block;
    background: #ecfdf5;
    color: #065f46;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.oa-modal-header h3 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.oa-modal-header p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.oa-modal-form .oa-form-field {
    margin-bottom: 18px;
}

.oa-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.oa-modal-form label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.oa-modal-form label .req {
    color: #ef4444;
}

.oa-input-text,
.oa-select-field,
.oa-textarea-text {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #ffffff;
}

.oa-input-text:focus,
.oa-select-field:focus,
.oa-textarea-text:focus {
    border-color: #15803d;
    box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.15);
}

/* Star Picker */
.oa-star-picker {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    padding: 7px 12px;
    border-radius: 8px;
}

.oa-star-choice {
    font-size: 24px;
    cursor: pointer;
    color: #cbd5e1;
    transition: color 0.15s;
    line-height: 1;
}

.oa-star-choice.active {
    color: #f59e0b;
}

.oa-star-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    margin-left: 6px;
}

.oa-modal-footer {
    margin-top: 24px;
}

.oa-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    color: #ffffff;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(22, 101, 52, 0.3);
}

.oa-submit-btn:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(22, 101, 52, 0.4);
}

/* 5. Success Modal with Animated Green Tick */
.oa-success-container {
    text-align: center;
    padding: 40px 30px;
    max-width: 480px;
}

.oa-green-tick-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    box-sizing: content-box;
    position: relative;
}

.oa-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #22c55e;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #22c55e;
    animation: oaFill .4s ease-in-out .4s forwards, oaScale .3s ease-in-out .9s both;
}

.oa-checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #22c55e;
    fill: none;
    animation: oaStroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.oa-checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #22c55e;
    animation: oaStroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes oaStroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes oaScale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes oaFill {
    100% {
        box-shadow: inset 0px 0px 0px 40px rgba(34, 197, 94, 0.12);
    }
}

.oa-success-title {
    font-size: 24px;
    font-weight: 800;
    color: #14532d;
    margin: 0 0 14px 0;
}

.oa-success-message-box {
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.oa-urdu-msg {
    font-size: 16px;
    font-weight: 700;
    color: #166534;
    line-height: 1.6;
    margin: 0 0 8px 0;
}

.oa-en-submsg {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.4;
    margin: 0;
}

.oa-btn-done {
    background: #15803d;
    color: #ffffff;
    border: none;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.oa-btn-done:hover {
    background: #166534;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .oa-title {
        font-size: 24px;
    }
    .oa-main-title-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .oa-btn-write-review {
        width: 100%;
        justify-content: center;
    }
    .oa-form-grid-2 {
        grid-template-columns: 1fr;
    }
    .oa-reviews-grid {
        grid-template-columns: 1fr;
    }
}
