
/* =========================
   POPUP BASE
========================= */
.cv-popup-overlay {
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.6);
    display:none;
    z-index:9999;
}

.cv-popup-content {
    width:520px;
    max-width:95%;
    background:#fff;
    margin:60px auto;
    padding:20px;
    border-radius:12px;
    position:relative;
}

/* CLOSE */
.cv-close {
    position:absolute;
    right:15px;
    top:10px;
    cursor:pointer;
    font-size:22px;
}

/* =========================
   FORM ROW (BOOK FORM FIX)
========================= */
.form-row {
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:8px;
}

.form-row label {
    width:120px;
    font-size:13px;
    font-weight:600;
}

.form-row input,
.form-row textarea {
    flex:1;
    padding:8px;
    border:1px solid #ccc;
    border-radius:6px;
    font-size:13px;
}

/* =========================
   SERVICES TITLE
========================= */
.services-title {
    font-weight:600;
    margin:10px 0 6px;
    font-size:14px;
}

/* =========================
   SERVICES GRID (FIXED)
========================= */
.services-grid {
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap:8px;
    margin-top:10px;
}

.services-grid label {
    font-size:13px;
    display:flex;
    align-items:center;
    gap:6px;
}

/* MOBILE */
@media(max-width:600px){
    .services-grid{
        grid-template-columns: repeat(2,1fr);
    }

    .form-row label {
        width:100px;
        font-size:12px;
    }
}

/* =========================
   STAR RATING (FIXED UX)
========================= */
.rating {
    display:flex;
    flex-direction:row-reverse;
    justify-content:flex-end;
    gap:4px;
    margin-top:8px;
}

/* hide radio */
.rating input {
    display:none;
}

/* stars */
.rating label {
    font-size:24px;
    color:#ccc;
    cursor:pointer;
    transition:0.2s;
}

/* hover effect */
.rating label:hover,
.rating label:hover ~ label {
    color:#f5b301;
}

/* selected */
.rating input:checked ~ label {
    color:#f5b301;
}

/* CV FILE INFO TEXT */
.cv-file-info {
    font-size: 12px;
    margin-top: 4px;
    font-weight: 700;
    color: #d63638;
    display: block;
}

/* =========================
   RATING ALIGNMENT FIX
========================= */

/* =========================
   RATING ALIGNMENT — FINAL FIX
========================= */

.rating-container {
    flex: 1;
    min-width: 0;
}

/* keep stars on ONE line */
.rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
    gap: 6px;
    margin-top: 4px;

    white-space: nowrap;   /* prevent wrapping */
    overflow: hidden;      /* keep inside popup */
}

/* hide radio */
.rating input {
    display: none;
}

/* stars */
.rating label {
    font-size: 24px;
    color: #ccc;
    cursor: pointer;
    transition: 0.2s;
}

/* hover */
.rating label:hover,
.rating label:hover ~ label {
    color: #f5b301;
}

/* selected */
.rating input:checked ~ label {
    color: #f5b301;
}