/* ==========================
   GLOBAL
========================== */
body {
    font-family: "Inter", sans-serif;
    margin: 0;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

h1, h2, h3 {
    margin: 0 0 10px;
    font-weight: 700;
}

.text-center{
    text-align: center;
}

/* ==========================
   STEP NAVIGATION (TOP)
========================== */
.step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* gap: 50px; */
    padding: 25px 0 0 0;
    border-bottom: 1px solid #c62828;
}

.step-item {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100;
    padding-bottom: 20;
}

.step-circle {
    width: 36px;
    height: 36px;
    background: #ddd;
    border-radius: 50%;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
}

.step-item.active .step-circle {
    background: #c62828;
    color: #fff;
}

.step-item.active .step-label,
.step-finish .step-label {
    color: #c62828;
}
.step-item.active .step-label{
    font-weight: 700;
}

.step-label {
    margin-top: 6px;
    font-size: 13px;
    color: #444;
    line-height: 1.2;
    min-height: 32px;  /* muat 2 baris */
}

.step-finish, .step-item.active{
    border-bottom: 2px solid #c62828;
}

.step-item.step-finish .step-circle{
    border:1px solid #c62828;
    color:#c62828;
    background-color: transparent;
}

/* ==========================
   TITLE AREA
========================== */
.section-title {
    margin-top: 25px;
}

.section-title h1 {
    font-size: 32px;
    color: #c62828;
}

.apply-page .section-title p {
    margin-top: 8px;
    color: #777;
    font-size: 12px;
    font-weight: 400;
}

/* ==========================
   SELECTED PROGRAM BOX
========================== */
.selected-box {
    margin-top: 25px;
    padding: 25px 30px;
    background: #c62828;
    color: #fff;
    border-radius: 8px;
    font-size: 18px;
    line-height: 1.5;
}

.selected-box small {
    display: block;
    opacity: 0.8;
    margin-bottom: 5px;
}

/* ==========================
   LEFT AND RIGHT SIDE
========================== */
.row-2 {
    display: flex;
    justify-content: space-between; /* kiri & kanan */
    margin-top: 40px;
    gap:40px;
}

@media (min-width: 768px) {
    .left-side,.right-side {
        width:50%;
    }
}


/* ==========================
   OPTIONS SECTION
========================== */

.option-item {
    padding: 12px 18px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: #f7f7f7;
    border: 2px solid transparent;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    gap:20px;
    color:#aeadad;
    height:50px;
}

.option-item.active {
    background: #c62828;
    color: #fff;
    border-color: #c62828;
}

.option-item:hover {
    border-color: #c62828;
}

/* circle putih + border merah */
.option-item.active .circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: transparent;
    position: relative; /* penting */
    display: inline-block;
}

.option-item.active .circle {
    background: #fff;
}


.option-item p {
    margin-top: 0;
}

/* check merah saat active */
.option-item.active .circle::after {
    content: "✔";
    display: block;
    color: #c62828;
    font-size: 14px;
    font-weight: bold;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -55%);
}


/* ==========================
   NEXT BUTTON
========================== */
.step-buttons p{
    display: flex;
    justify-content: space-between; /* kiri & kanan */
    margin-top: 20px;
}

.btn-next,
.btn-finish:hover,
.btn-prev:hover {
    background: #c62828!important;
    padding: 10px 32px!important;
    color: #fff!important;
    font-size: 17px!important;
    border-radius: 8px!important;
    cursor: pointer!important;
    border: none!important;
}

.btn-prev,
.btn-next:hover {
    border: 1px solid #c62828;
    padding: 10px 32px;
    font-size: 17px;
    border-radius: 8px;
    cursor: pointer;
    background-color: transparent;
    color:#c62828;
}

.btn-finish {
    border: 1px solid #c62828;
    padding: 10px 32px;
    font-size: 17px;
    border-radius: 8px;
    cursor: pointer;
    background-color: transparent;
    color:#c62828;
    margin: auto;
}

.wpcf7-spinner{
    display: none;
}

/* ==========================
   RESPONSIVE: MOBILE
========================== */
@media (max-width: 768px) {
    .step-nav {
        justify-content: flex-start;
        overflow-x: auto;
        gap: 25px;
        padding: 15px;
    }

    .section-title h1 {
        font-size: 26px;
    }

    .selected-box {
        font-size: 16px;
        padding: 18px 20px;
    }

    .options {
        width: 100%;
    }

    .option-item {
        font-size: 14px;
        width: 100%;
    }

    .row-2 {
        display: block;
    }

    .left-side,.right-side {
        width:100%;
    }

    .step-item .step-label{
        display: none;
    }

    .step-item.active .step-label,
    .step-finish .step-label {
        display: block;
    }
}

/* aktif mulai layar ≥ 768px */
.row {
  display: flex;
  flex-wrap: wrap;
}

.col-md-3 {
  width: 100%;
}

.col-md-9 {
  width: 100%;
}

@media (min-width: 768px) {
  .col-md-3 {
    width: 25%;
  }

  .col-md-9 {
    width: 75%;
  }
}


/* ==========================
   STEP CONTENT
========================== */
.step-content {
    display: none;
}
.step-content.active {
    display: block;
}

.step-item.active .step-circle {
    background: #c62828;
    color: #fff;
}

/* Wrapper */
.form-wrapper {
    width: 100%;
    margin: 30px 0;
    padding: 10px;
    font-family: Arial, sans-serif;
}

/* Section Title */
.section-subtitle {
    font-size: 20px;
    font-weight: 700;
    color: #c62828;
    margin: 30px 0 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 4px;
}

/* GRID: 2 columns desktop, 1 column mobile */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 40px;
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Form Group */
.form-group > p{
    display: flex;
    flex-direction: column;
}

/* Label */
.form-group label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.subnote {
    font-size: 11px;
    color: #777;
    margin-left: 4px;
    font-weight: normal;
}

/* Inputs */
.form-group input,
.form-group select,
.form-group textarea {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    outline: none;
    transition: border 0.2s;
    width: 100%;
}

/* For textarea height */
.form-group textarea {
    height: auto;
    min-height: 42px;
}

/* Focus effect */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #c62828;
}

/* Mobile number side-by-side */
.mobile-flex p{
    display: flex;
    gap: 10px;
}

.country-code {
    width: 100px;
}

.form-group select{
    padding: 8px 28px 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    appearance: none;
    background-color: #fff;
    cursor: pointer;

    background-size: 10px 10px;
    background-position: right 10px center;
    background-repeat: no-repeat;
    /* segitiga bawah merah */
    background-image: linear-gradient(
        135deg,
        transparent 0,
        transparent 50%,
        #c62828 50%,
        #c62828 100%
    );
}

.nohp{
    width:100%;
}

/* Notes */
.note {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
    line-height: 1.4;
    display: block;
}

.flex-column p{
    display: flex;
    justify-content: space-between;
}

.flex-row p{
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.bold{
    font-weight: 800;
}

.form-label {
    display: block;
    font-weight: 600;
    margin: 20px 0 10px;
    color: #000000;
}

/* Custom Radio */
.custom-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0;
    cursor: pointer;
    font-size: 15px;
    position: relative;
    margin-bottom:15px;
}

.custom-radio input {
    display: none;
}

.radio-mark {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #c62828;
    position: relative;
}

.custom-radio input:checked ~ .radio-mark::after {
    content: "";
    width: 10px;
    height: 10px;
    background: #c62828;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/* Input box */
.form-input {
    border: 1px solid #ccc;
    padding: 8px 10px;
    border-radius: 6px;
    width: 220px;
    outline: none;
}

.form-input:focus {
    border-color: #c62828;
}

/* Radio + Input inline (Yes + score input) */
.radio-inline p {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 6px 0 18px;
}

@media (max-width: 768px) {
    .radio-inline p{
        display: block;
    }
}

.score-input {
    width: 200px;
}

/* ---- Overlay Modal ---- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ---- Modal Box ---- */
.modal-box {
    background: #fff;
    width: 420px;
    padding: 22px;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    animation: fadeIn .25s ease-out;
    text-align: center;
}

.upload-modal {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.upload-modal.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}

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

/* ---- Modal Title ---- */
.modal-title {
    font-size: 20px;
    font-weight: bold;
    color: #c62828;
    margin-bottom: 18px;
}

/* ---- Drag & Drop Zone ---- */
.drop-area {
    border: 2px dashed #c62828;
    background: #fff7f7;
    padding: 40px 20px;
    border-radius: 10px;
    color: #c62828;
    cursor: pointer;
    transition: 0.25s;
}

.drop-area.dragover {
    background: #ffeaea;
    border-color: #a31717;
}

/* ---- File Name Preview ---- */
.file-preview {
    margin-top: 15px;
    font-size: 14px;
    color: #333;
}

/* ---- Close Button ---- */
.btn-cancel,
.btn-done:hover {
    margin-top: 20px;
    padding: 10px 20px;
    color: #c62828;
    border: 1px solid #c62828;
    background-color: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.25s;
}

.btn-cancel:hover,
.btn-done {
    background: #a31717;
    color:#fff;
    border-radius: 6px;
}

.btn-upload.uploaded {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #e8f2ff;
}

.btn-upload.uploaded .uploaded-file {
    font-weight: 600;
}

.namefile{
    font-style: italic;
    font-weight: 800;
    max-width:200px
}

.upload-column > p,.upload-column{
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}
.upload-column{
    border-bottom: 1px solid #ddd;
}

.upload-column .flex-row p{
    margin: 0;
    color: #7a7a7a;
    font-size: 12px;
}

.btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* jarak antara icon dan teks */
    background: #c62828;
    color: #fff;
    padding: 10px 22px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: 0.25s ease;
    height: 50px;
    margin: auto 0;
}

.btn-upload:hover {
    background: #a31717;
}

.btn-upload.uploaded:hover {
    background: #166efa;
}

/* icon upload */
.btn-upload i {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg" fill="white"><path d="M10 2l4 4h-3v6h-2V6H6l4-4zm-6 14h12v2H4v-2z"/></svg>') no-repeat center center;
    background-size: 18px;
}

@media (min-width: 768px) {
    .width-50{
        width: 50%;
        margin: auto;
    }
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    user-select: none;
    margin-bottom:40px;
}

/* Sembunyikan checkbox asli */
.custom-checkbox input {
    display: none;
}

/* Kotak checkbox */
.custom-checkbox .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #c62828;
    border-radius: 4px; /* agar mirip style custom-radio kamu */
    position: relative;
    transition: 0.2s ease;
}

/* Ketika di-hover */
.custom-checkbox:hover .checkmark {
    border-color: #a31717;
}

/* Centang muncul ketika checked */
.custom-checkbox input:checked ~ .checkmark::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 12px;
    border: solid #c62828;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.terms{
    margin-top:40px;
}

.hidden-fields-container{
    display: none;
}

.wpcf7 br {
    display: none !important;
}