:root {
    --opa-primary: #069447;
    --opa-primary-dark: #04773a;
    --opa-primary-soft: #eaf8f0;
    --opa-secondary: #102a43;
    --opa-accent: #f4a62a;
    --opa-white: #ffffff;
    --opa-bg: #f5f8f7;
    --opa-text: #243447;
    --opa-muted: #6b7c8f;
    --opa-border: #dce7e1;
    --opa-danger: #dc3545;
    --opa-success: #16884f;
    --opa-shadow: 0 20px 55px rgba(16, 42, 67, 0.12);
}

.course-register-page {
    position: relative;
    padding: 70px 0 90px;
    background:
        radial-gradient(
            circle at top left,
            rgba(6, 148, 71, 0.12),
            transparent 35%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(244, 166, 42, 0.11),
            transparent 32%
        ),
        var(--opa-bg);
    overflow: hidden;
}

.course-register-page::before {
    content: "";
    position: absolute;
    top: 70px;
    right: -130px;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    background: rgba(6, 148, 71, 0.06);
}

.course-register-page::after {
    content: "";
    position: absolute;
    bottom: 60px;
    left: -100px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(244, 166, 42, 0.07);
}

.course-register-wrap {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
}

.course-register-card {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    background: var(--opa-white);
    border: 1px solid var(--opa-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--opa-shadow);
}

.course-register-info {
    position: relative;
    padding: 52px 42px;
    color: var(--opa-white);
    background:
        linear-gradient(
            145deg,
            rgba(6, 148, 71, 0.98),
            rgba(4, 119, 58, 0.96)
        );
    overflow: hidden;
}

.course-register-info::before {
    content: "";
    position: absolute;
    top: -90px;
    right: -80px;
    width: 240px;
    height: 240px;
    border: 44px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
}

.course-register-info::after {
    content: "";
    position: absolute;
    bottom: -110px;
    left: -90px;
    width: 250px;
    height: 250px;
    border: 40px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.course-register-info-content {
    position: relative;
    z-index: 2;
}

.course-register-label {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px !important;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.course-register-info h1 {
    margin: 0 0 16px;
    color: var(--opa-white);
    font-size: 38px;
    line-height: 1.2;
    font-weight: 700;
}

.course-register-info p {
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 16px;
    line-height: 1.8;
}

.course-summary-box {
    padding: 22px;
    margin-bottom: 28px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(8px);
}

.course-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.course-summary-row:last-child {
    border-bottom: 0;
}

.course-summary-row span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.course-summary-row strong {
    color: var(--opa-white);
    font-size: 15px;
    text-align: right;
}

.course-register-points {
    padding: 0;
    margin: 0;
    list-style: none;
}

.course-register-points li {
    position: relative;
    padding-left: 28px !important;
    margin-bottom: 14px !important;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    line-height: 1.6;
}

.course-register-points li::before {
    content: "✓";
    position: absolute;
    top: 0;
    left: 0;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    color: var(--opa-primary-dark);
    background: var(--opa-white);
    font-size: 12px;
    font-weight: 700;
    line-height: 19px;
    text-align: center;
}

.course-register-form-area {
    padding: 48px 45px;
    background: var(--opa-white);
}

.course-register-form-heading {
    margin-bottom: 30px;
}

.course-register-form-heading h2 {
    margin: 0 0 8px;
    color: var(--opa-secondary);
    font-size: 29px;
    font-weight: 700;
}

.course-register-form-heading p {
    margin: 0;
    color: var(--opa-muted);
    font-size: 15px;
    line-height: 1.7;
}

.course-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.course-form-group {
    margin: 0;
}

.course-form-group.full-width {
    grid-column: 1 / -1;
}

.course-form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--opa-secondary);
    font-size: 14px;
    font-weight: 600;
}

.course-form-group label span {
    color: var(--opa-danger);
}

.course-form-control {
    width: 100%;
    height: 50px;
    padding: 12px 15px;
    border: 1px solid var(--opa-border);
    border-radius: 10px;
    color: var(--opa-text);
    background: var(--opa-white);
    font-size: 15px;
    outline: none;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

textarea.course-form-control {
    height: 120px;
    min-height: 120px;
    resize: vertical;
}

.course-form-control:focus {
    border-color: var(--opa-primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(6, 148, 71, 0.11);
}

.course-form-control[readonly] {
    color: var(--opa-secondary);
    background: var(--opa-primary-soft);
    border-color: rgba(6, 148, 71, 0.22);
    font-weight: 600;
    cursor: not-allowed;
}

.course-checkbox-box {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px 15px;
    border: 1px solid var(--opa-border);
    border-radius: 10px;
    background: #fbfdfc;
}

.course-checkbox-box input {
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    accent-color: var(--opa-primary);
    flex: 0 0 auto;
}

.course-checkbox-box label {
    margin: 0;
    color: var(--opa-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    cursor: pointer;
}

.course-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 28px;
}

.course-back-link {
    color: var(--opa-muted);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.course-back-link:hover {
    color: var(--opa-primary);
}

.course-submit-btn {
    min-width: 210px;
    height: 52px;
    padding: 0 26px;
    border: 0;
    border-radius: 10px;
    color: var(--opa-white);
    background:
        linear-gradient(
            135deg,
            var(--opa-primary),
            var(--opa-primary-dark)
        );
    box-shadow: 0 10px 24px rgba(6, 148, 71, 0.23);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.course-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(6, 148, 71, 0.3);
}

.course-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.course-secure-note {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    margin-top: 12px;
    color: var(--opa-muted);
    font-size: 12px;
}

.course-form-error,
.course-form-success {
    padding: 16px 18px;
    margin-bottom: 25px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.course-form-error {
    color: #842029;
    border: 1px solid #f5c2c7;
    background: #f8d7da;
}

.course-form-success {
    color: #0f5132;
    border: 1px solid #badbcc;
    background: #d1e7dd;
}

.course-payment-opening {
    padding: 38px 28px;
    border: 1px solid rgba(6, 148, 71, 0.18);
    border-radius: 16px;
    background: var(--opa-primary-soft);
    text-align: center;
}

.course-payment-opening h3 {
    margin: 0 0 12px;
    color: var(--opa-secondary);
    font-size: 25px;
}

.course-payment-opening p {
    margin: 0 0 12px;
    color: var(--opa-muted);
    line-height: 1.7;
}

.course-payment-opening strong {
    color: var(--opa-primary-dark);
}

.course-page-banner {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(
            90deg,
            rgba(5, 41, 28, 0.9),
            rgba(6, 148, 71, 0.62)
        ),
        url("../images/course-registration-banner.jpg")
        center center / cover no-repeat;
}

.course-page-banner h1 {
    position: relative;
    z-index: 2;
    margin: 0;
    color: var(--opa-white);
    font-size: 44px !important;
    font-weight: 700;
    padding-top: 94px;
}

.course-page-banner p {
    position: relative;
    z-index: 2;
    max-width: 650px;
    margin: 13px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 17px;
    line-height: 1.7;
}

@media (max-width: 991px) {
    .course-register-card {
        grid-template-columns: 1fr;
    }

    .course-register-info,
    .course-register-form-area {
        padding: 40px 30px;
    }

    .course-register-info h1 {
        font-size: 32px;
    }

    .course-page-banner {
        min-height: 250px;
    }

    .course-page-banner h1 {
        font-size: 36px;
    }
}

@media (max-width: 767px) {
    .course-register-page {
        padding: 45px 0 60px;
    }

    .course-register-card {
        border-radius: 17px;
    }

    .course-register-info,
    .course-register-form-area {
        padding: 32px 22px;
    }

    .course-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .course-form-group.full-width {
        grid-column: auto;
    }

    .course-register-info h1 {
        font-size: 28px;
    }

    .course-register-form-heading h2 {
        font-size: 25px;
    }

    .course-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .course-submit-btn {
        width: 100%;
    }

    .course-back-link {
        text-align: center;
    }

    .course-secure-note {
        justify-content: center;
    }

    .course-page-banner {
        min-height: 220px;
        padding: 45px 0;
    }

    .course-page-banner h1 {
        font-size: 30px;
    }

    .course-page-banner p {
        font-size: 15px;
    }
}