* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", Arial, sans-serif;
}

body {
    background: #f1f1f1;
    color: #111;
}

/* Main Container */
.apply-container {
    max-width: 1050px;
    margin: 70px auto;
    padding: 20px;
}

/* Header */
.form-header {
    text-align: center;
    margin-bottom: 45px;
}

.form-header h1 {
    font-size: 42px;
    font-weight: 800;
    color: #111;
    letter-spacing: -1px;
}

.form-header p {
    margin-top: 12px;
    color: #666;
    font-size: 16px;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.step {
    width: 180px;
    text-align: center;
    color: #999;
    font-size: 14px;
    font-weight: 600;
}

.step::before {
    content: "";
    display: block;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    margin: auto;
    margin-bottom: 10px;
    background: #ddd;
    line-height: 42px;
}

.step.active {
    color: #111;
}

.step.active::before {
    background: #111;
}

.line {
    width: 130px;
    height: 2px;
    background: #ccc;
}

/* Form Card */
.form-page {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .08);
}

.form-page h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 35px;
    color: #111;
}

.section-title {
    margin-top: 40px;
    padding-top: 35px;
    border-top: 1px solid #ddd;
}

/* Layout */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.form-row.three {
    grid-template-columns: repeat(3, 1fr);
}

/* Input */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 9px;
    color: #333;
    font-size: 14px;
    font-weight: 700;
}

.form-group label span {
    color: #dc2626;
}

.form-group input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111;
    font-size: 15px;
    outline: none;
    transition: .25s;
}

.form-group input:hover {
    border-color: #999;
}

.form-group input:focus {
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .08);
}

/* Terms */
.terms-box {
    margin-top: 30px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #111;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: #111;
}

/* Terms main text black */
.checkbox-label span {
    color: #111;
}

/* Only star red */
.checkbox-label .required-star {
    color: #dc2626;
}

.terms-box .checkbox-label {
    color: #111 !important;
}

.terms-box .checkbox-label span {
    color: #111 !important;
}

.terms-box .checkbox-label span span {
    color: #dc2626 !important;
}

/* Buttons */
.button-area {
    display: flex;
    justify-content: flex-end;
    margin-top: 35px;
}

.two-buttons {
    justify-content: space-between;
}

button {
    height: 52px;
    padding: 0 45px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: .25s;
}

#continueBtn,
#submitBtn {
    background: #111;
    color: #fff;
    border: none;
}

#continueBtn:hover,
#submitBtn:hover {
    background: #333;
}

#backBtn {
    background: #fff;
    color: #111;
    border: 1px solid #111;
}

#backBtn:hover {
    background: #111;
    color: #fff;
}

/* Error */
.error {
    color: #dc2626;
    font-size: 13px;
}

/* Responsive */
@media(max-width:768px) {
    .apply-container {
        margin: 30px auto;
    }

    .form-page {
        padding: 25px;
    }

    .form-row,
    .form-row.three {
        grid-template-columns: 1fr;
    }

    .step-indicator {
        display: none;
    }

    .button-area,
    .two-buttons {
        flex-direction: column;
        gap: 15px;
    }

    button {
        width: 100%;
    }
}

@media(max-width:768px) {
    .apply-container {
        margin: 30px auto;
        padding: 15px;
    }

    .form-page {
        padding: 25px;
    }

    .form-row,
    .form-row.three {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-row .form-group:last-child {
        margin-bottom: 20px;
    }

    .step-indicator {
        display: none;
    }

    .button-area,
    .two-buttons {
        flex-direction: column;
        gap: 15px;
    }

    button {
        width: 100%;
    }
}

.field-error {
    color: #dc2626;
    font-size: 13px;
    margin-top: 5px;
}

.field-success {
    color: #16a34a;
    font-size: 13px;
    margin-top: 5px;
}

/* Validation Error */
.field-error {
    color: #dc2626;
    font-size: 13px;
    margin-top: 6px;
}

/* Input Error Border */
.input-error {
    border: 1px solid #dc2626 !important;
    outline: none;
}

/* Optional: focus এও red থাকবে */
.input-error:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
}

.error-message {
    display: block;
    margin-top: 8px;
    padding-left: 2px;
    color: #e53935 !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.card-input-wrapper {
    position: relative;
}

.card-input-wrapper input {
    padding-right: 60px;
}

.card-brand {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 24px;
    pointer-events: none;
    user-select: none;
}

.address-suggestions {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    display: none;
}

.address-item {
    padding: 12px 15px;
    cursor: pointer;
    font-size: 14px;
    line-height: 20px;
    border-bottom: 1px solid #eee;
}

.address-item:last-child {
    border-bottom: none;
}

.address-item:hover {
    background: #f5f7fb;
}

.address-group {
    position: relative;
}

.verification-summary {
    margin-top: 30px;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.summary-header {
    background: #f8f8f8;
    padding: 14px 18px;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px solid #e5e5e5;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
}

.summary-divider {
    border-top: 2px dashed #d9d9d9;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    font-size: 18px;
    font-weight: 700;
    background: #fafafa;
}

.promo-box {
    margin-top: 20px;
}

.promo-box label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.promo-row {
    display: flex;
    gap: 10px;
}

.promo-row input {
    flex: 1;
}

.promo-row button {
    width: 120px;
}

#promoMessage {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
}

.success {
    color: #15803d;
}

.error {
    color: #dc2626;
}

.total-success {
    color: #15803d;
}

.promo-applied {
    background: #16a34a;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.discount {
    color: #16a34a;
    font-weight: 700;
}

.summary-total {
    color: #16a34a;
}

.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.payment-title {
    font-size: 26px;
    font-weight: 700;
    color: #111827;
}

.payment-security {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #16a34a;
}

.payment-description {
    margin: 0 0 28px;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
}