/* ============================================================
   PROXIMA REVIEWS — FRONTEND STYLES
   ============================================================ */

/* ---- OVERLAY ---- */
.proxima-overlay {
    font-family: 'Geologica', -apple-system, BlinkMacSystemFont, sans-serif;
    position: fixed;
    inset: 0;
    background: rgba(0, 15, 40, 0.6);
    z-index: 999990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: prox-fade-in 0.2s ease;
}

@keyframes prox-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ---- MODAL ---- */
.proxima-modal {
    background: #fff;
    border: 1px solid #7d9ed1;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    scrollbar-width: thin;
    box-shadow: 0 8px 28px rgba(0, 15, 40, 0.12);
    animation: prox-slide-up 0.22s ease-out;
}

@keyframes prox-slide-up {
    from { transform: translateY(16px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ---- HEADER ---- */
.proxima-modal-header {
    padding: 26px 28px 20px;
    border-bottom: 1px solid #e8eef6;
}

.proxima-modal-stars {
    font-size: 18px;
    color: #F2B129;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.proxima-modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1d22;
    margin: 0 0 5px;
    font-family: 'Geologica', sans-serif;
}

.proxima-modal-header p {
    font-size: 13px;
    color: #7a8494;
    margin: 0;
    font-family: 'Geologica', sans-serif;
}

/* ---- CLOSE BUTTON ---- */
.proxima-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    color: #aab0bc;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 6px;
    z-index: 2;
    transition: color 0.15s;
}
.proxima-modal-close:hover { color: #555; }

/* ---- FORM ---- */
#proxima-form {
    padding: 22px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

/* ---- STAR PICKER ---- */
.proxima-stars-wrap > label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 7px;
    font-family: 'Geologica', sans-serif;
}

.proxima-star-picker {
    display: flex;
    gap: 2px;
}

.proxima-star-btn {
    background: none;
    border: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    font-size: 28px;
    color: #e0e0e0;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.1s;
    outline: none;
}
.proxima-star-btn.selected,
.proxima-star-btn.hovered { color: #F2B129; }

/* ---- FIELDS ---- */
.proxima-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.proxima-field label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    font-family: 'Geologica', sans-serif;
}

.proxima-field input,
.proxima-field textarea {
    width: 100%;
    border: 1px solid #d0d4da;
    border-radius: 6px;
    padding: 9px 11px;
    font-size: 14px;
    font-family: 'Geologica', sans-serif;
    color: #1a1a1a;
    background: #fff;
    transition: border-color 0.15s;
    outline: none;
    box-sizing: border-box;
    resize: vertical;
}
.proxima-field input:focus,
.proxima-field textarea:focus { border-color: #0067b4; }
.proxima-field input::placeholder,
.proxima-field textarea::placeholder { color: #b0b5bd; }

.proxima-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.proxima-req { color: #F2B129; font-weight: 700; }

/* ---- MESSAGE ---- */
.proxima-msg {
    border-radius: 5px;
    padding: 9px 12px;
    font-size: 13px;
    font-family: 'Geologica', sans-serif;
    display: none;
    line-height: 1.5;
}
.proxima-msg.success {
    background: #f0faf0; color: #2d6a2d;
    border: 1px solid #b8d9b8; display: block;
}
.proxima-msg.error {
    background: #fdf3f3; color: #a12020;
    border: 1px solid #e8b8b8; display: block;
}

/* ---- SUBMIT BUTTON ---- */
.proxima-submit-btn {
    background: #0067b4;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Geologica', sans-serif;
    cursor: pointer;
    width: 100%;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 2px;
}
.proxima-submit-btn:hover:not(:disabled) { background: #004e8c; }
.proxima-submit-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.proxima-btn-spinner {
    display: inline-block;
    animation: proxima-spin 0.7s linear infinite;
    font-size: 15px;
}
@keyframes proxima-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ==========================================================
   SLIDER  —  [proxima_reviews]
   ========================================================== */

.proxima-slider-wrap {
    font-family: 'Geologica', -apple-system, sans-serif;
}

.proxima-slider-viewport {
    overflow: hidden;
    cursor: grab;
    width: 100%;
}

.proxima-slider-viewport.is-dragging {
    cursor: grabbing;
}

.proxima-slider-track {
    display: flex;
    gap: 20px;
    will-change: transform;
    user-select: none;
    -webkit-user-select: none;
}

/* ---- CARD ---- */
.proxima-review-card {
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e2e5ea;
    border-radius: 10px;
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.proxima-card-quote {
    font-size: 44px;
    line-height: 0.75;
    color: #F2B129;
    font-family: Georgia, 'Times New Roman', serif;
    height: 26px;
    overflow: hidden;
    margin-bottom: 6px;
    flex-shrink: 0;
}

.proxima-review-text {
    font-size: 13.5px;
    line-height: 1.6;
    color: #3c414a;
    margin: 0 0 10px;
    font-family: 'Geologica', sans-serif;
    flex: 1;
}

.proxima-stars {
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    flex-shrink: 0;
}
.proxima-stars .star-on  { color: #F2B129; }
.proxima-stars .star-off { color: #ddd; }

.proxima-card-author {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #f0f2f5;
    flex-shrink: 0;
}

.proxima-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #0067b4;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: 'Geologica', sans-serif;
}

.proxima-reviewer-name {
    font-size: 13px;
    font-weight: 700;
    color: #1a1d22;
    display: block;
    font-family: 'Geologica', sans-serif;
}

.proxima-review-date {
    font-size: 11px;
    color: #a0a5af;
    font-family: 'Geologica', sans-serif;
}


/* ---- READ MORE BUTTON ---- */
.proxima-read-more {
    background: none;
    border: none;
    box-shadow: none;
    color: #0067b4;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Geologica', sans-serif;
    cursor: pointer;
    padding: 0;
    margin-left: 3px;
    line-height: 1;
    vertical-align: baseline;
}
.proxima-read-more:hover { 
    text-decoration: underline;
    background-color: transparent;
    color: #0067b4;
 }

/* ---- REVIEW DETAIL MODAL ---- */
.proxima-review-modal-stars {
    font-size: 17px;
    color: #F2B129;
    letter-spacing: 3px;
    margin-bottom: 6px;
}

.proxima-review-modal-body {
    padding: 18px 28px 28px;
}

.proxima-review-modal-body p {
    font-size: 14px;
    line-height: 1.75;
    color: #3c414a;
    margin: 0;
    font-family: 'Geologica', sans-serif;
}

/* ---- EMPTY ---- */
.proxima-no-reviews {
    font-family: 'Geologica', sans-serif;
    text-align: center;
    color: #8a8f9b;
    padding: 40px 20px;
    font-size: 14px;
}

/* ---- DOTS ---- */
.proxima-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
}

.proxima-dot {
    display: block;
    height: 10px;
    width: 10px;
    border-radius: 999px;
    background: #fff;
    border: 1.5px solid #0067b4;
    transition: width 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    flex-shrink: 0;
    cursor: pointer;
}

.proxima-dot.active {
    width: 24px;
    background: #0067b4;
    border-color: #0067b4;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
    #proxima-form { padding: 16px 16px 22px; }
    .proxima-modal-header { padding: 20px 16px 16px; }
    .proxima-field-row { grid-template-columns: 1fr; }
}
