/* Mobile-First Approach - Base styles for mobile */
:root {
    --primary-color: #1B5E20;
    --primary-light: #4CAF50;
    --accent-color: #FDD835;
    --border-color: #E0E0E0;
    --text-dark: #212121;
    --text-secondary: #424242;
    --text-muted: #757575;
    --bg-light: #F5F5F5;
}

body {
    font-size: 14px;
    line-height: 1.5;
}

/* Header Section - Mobile First */
.header-section {
    padding: 1rem 0;
    background: #FFFFFF;
    border-bottom: 1px solid #E0E0E0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 50%;
}

.logo-text {
    text-align: left;
}

.logo-text h1 {
    font-size: 1.25rem;
    line-height: 1.2;
    margin-bottom: 0;
    font-weight: 700;
    color: #212121;
}

.logo-text small {
    font-size: 0.875rem;
    line-height: 1.2;
    display: block;
    color: #757575;
}

/* Hamburger Menu - Mobile Only */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: 1.5rem;
    color: #212121;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(33, 33, 33, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Navbar styles */
.navbar-nav.mx-auto {
    flex: 1;
    justify-content: center;
}

/* Header Title */
.header-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #212121;
    text-transform: uppercase;
    line-height: 1.3;
    text-align: center;
    margin: 0;
    width: 100%;
}

/* Login Button */
.btn-login {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    color: #757575;
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.btn-login:hover {
    color: #212121;
    background: transparent;
}

.btn-login .material-icons {
    font-size: 1.125rem;
}

/* Navbar Collapse Content */
.navbar-collapse {
    margin-top: 1rem;
}

.navbar-nav {
    align-items: center;
}

.navbar-nav .nav-item {
    margin: 0.5rem 0;
}

/* Stepper - Mobile First */
.bs-stepper {
    background: #F5F5F5;
    border-radius: 8px;
    padding: 1.875rem 2.5rem; /* According to spec: padding: "30px 40px" */
    margin: 0 0 0 0; /* Positioned below header */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.bs-stepper-header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.5rem 0;
}

.bs-stepper-header::-webkit-scrollbar {
    display: none;
}

.step {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    flex-direction: column;
}

.bs-stepper-circle {
    width: 36px; /* According to spec: "circle_size": "36px" */
    height: 36px; /* According to spec: "circle_size": "36px" */
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFFFFF;
    color: #9E9E9E; /* According to spec: "default_color": "#9E9E9E" */
    border-radius: 50%;
    border: 2px solid #E0E0E0; /* According to spec: "circle_border": "2px solid" */
    font-weight: 500;
    position: relative;
}

.bs-stepper-circle-completed {
    background-color: #1B5E20 !important; /* According to spec: "completed_background": "#1B5E20" */
    color: white !important; /* According to spec: "completed_color": "white" */
    border-color: #1B5E20 !important; /* According to spec: "completed_border_color": "#1B5E20" */
}

.bs-stepper-circle-active {
    background-color: #1B5E20; /* According to spec: "active_background": "#1B5E20" */
    color: white !important; /* According to spec: "active_color": "white" */
    border-color: #1B5E20; /* According to spec: "active_border_color": "#1B5E20" */
}

.step-trigger {
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.bs-stepper-label {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #757575;
}

.step.active .bs-stepper-label {
    color: #1B5E20;
}

.line {
    flex: 0 0 30px; /* According to spec: "line_width": "30px" */
    min-width: 30px; /* According to spec: "line_width": "30px" */
    height: 2px; /* According to spec: "line_between": "2px solid #1B5E20" */
    background-color: #E0E0E0; /* Default color according to spec: "line_default": "2px solid #E0E0E0" */
    margin: 0 0.125rem;
    align-self: center;
}

/* Active line style */
.step.active ~ .step .line,
.step:nth-child(-n+2) .line { /* Lines between completed steps */
    background-color: #1B5E20; /* According to spec: "line_between": "2px solid #1B5E20" */
}

.step.active ~ .step .line {
    background-color: #E0E0E0;
}

/* Completed steps */
.step:nth-child(-n+1) .bs-stepper-circle {
    background-color: #1B5E20;
    color: white;
    border-color: #1B5E20;
}

.step:nth-child(-n+1) .bs-stepper-label {
    color: #1B5E20;
}

/* Hide stepper content - we only show current step content */
.bs-stepper-content {
    display: none;
}

/* Card Section */
.card {
    border: none;
    border-radius: 12px;
}

.card-body {
    padding: 1rem;
}

/* Section Headers */
h3.fw-bold {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    color: #212121;
    font-weight: 700;
}

/* Lists */
.numbered-list {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.numbered-list li {
    margin-bottom: 0.75rem;
    font-size: 0.813rem;
    line-height: 1.6;
    color: #424242;
}

.bullet-list {
    padding-left: 1.25rem;
    margin-top: 0.5rem;
}

.bullet-list li {
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    line-height: 1.7;
    color: #424242;
}

/* Options Container - Mobile First */
.options-container {
    gap: 1rem;
    display: flex;
    flex-direction: column;
}

.option-item {
    border: none;
    background: #F5F5F5;
    color: #757575;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.813rem;
    padding: 0.625rem 1.25rem !important;
    text-align: center;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.option-item:hover {
    background-color: #E8F5E9;
    color: #1B5E20;
}

.option-item.selected {
    background-color: #1B5E20;
    color: white;
}

.option-item .material-icons {
    font-size: 1.125rem;
    vertical-align: middle;
}

/* Form Elements */
.form-label {
    font-size: 0.813rem;
    margin-bottom: 0.5rem;
    color: #212121;
    font-weight: 600;
}

.form-select,
.form-control {
    font-size: 0.813rem;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #E0E0E0;
    color: #424242;
}

.form-select:focus,
.form-control:focus {
    border-color: #1B5E20;
    box-shadow: 0 0 0 0.2rem rgba(27, 94, 32, 0.15);
}

.btn {
    font-size: 0.875rem;
    padding: 0.75rem 2rem;
    border-radius: 6px;
}

.btn-success {
    background-color: #1B5E20;
    border-color: #1B5E20;
}

.btn-success:hover {
    background-color: #145018;
    border-color: #145018;
}

.subtitle {
    font-size: 0.813rem;
    font-weight: 500;
    color: #424242;
}

.closing-text {
    font-size: 0.75rem;
    color: #757575;
    font-style: italic;
}

/* Tablet Styles - 576px and up */
@media (min-width: 576px) {
    body {
        font-size: 15px;
    }
    .logo-image {
        width: 70px;
        height: 70px;
    }
    .header-title {
        font-size: 1rem;
    }
    .btn-login {
        font-size: 0.938rem;
    }
    .bs-stepper {
        padding: 1.25rem 1rem;
    }
    .bs-stepper-header {
        gap: 0.5rem;
    }
    .bs-stepper-circle {
        width: 30px;
        height: 30px;
        font-size: 0.875rem;
    }
    .line {
        flex: 0 0 15px;
        min-width: 15px;
        margin: 0 0.25rem;
    }
    .card-body {
        padding: 1.5rem;
    }
    h3.fw-bold {
        font-size: 1.125rem;
    }
    .numbered-list li,
    .bullet-list li {
        font-size: 0.938rem;
    }
    .option-item {
        font-size: 0.875rem;
        padding: 1rem !important;
    }
    .form-label,
    .form-select,
    .form-control,
    .btn,
    .subtitle,
    .closing-text {
        font-size: 0.938rem;
    }
}

/* Desktop Styles - 768px and up */
@media (min-width: 768px) {
    .header-section {
        padding: 1.25rem 0;
    }
    .logo-image {
        width: 80px;
        height: 80px;
    }
    .header-title {
        font-size: 1.125rem;
    }
    .btn-login {
        font-size: 0.938rem;
    }
    .navbar-collapse {
        margin-top: 0;
    }
    .bs-stepper {
        padding: 1.875rem 2.5rem;
    }
    .bs-stepper-header {
        flex-wrap: nowrap;
        justify-content: center;
    }
    .bs-stepper-circle {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    .line {
        flex: 1 1 auto;
        min-width: 20px;
    }
    .card-body {
        padding: 2rem;
    }
    h3.fw-bold {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    .numbered-list li,
    .bullet-list li,
    .form-label,
    .form-select,
    .form-control,
    .btn,
    .subtitle,
    .closing-text {
        font-size: 1rem;
    }
    .option-item {
        font-size: 0.938rem;
    }

    /* Horizontal layout for options on desktop */
    .options-container {
        flex-direction: row;
    }
}

/* Large Desktop - 992px and up */
@media (min-width: 992px) {
    .logo-image {
        width: 90px;
        height: 90px;
    }
    .bs-stepper-circle {
        width: 45px;
        height: 45px;
    }
    .header-title {
        font-size: 1.25rem;
    }
    .card {
        max-width: 900px;
    }
    .card-body {
        padding: 2.5rem;
    }
    /* Horizontal layout for options on desktop */
    .options-container {
        flex-direction: row;
    }
}

/* Extra Large Desktop - 1200px and up */
@media (min-width: 1200px) {
    .card-body {
        padding: 2.5rem;
    }
}

/* Utility Classes */
.material-icons.align-middle {
    vertical-align: middle;
}

/* Container adjustments for mobile */
@media (max-width: 575.98px) {
    .container-xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* File Upload Styles - Elegant KTP Upload Design */
.ktp-upload-area {
    position: relative;
    width: 100%;
}

.ktp-upload-area input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0.1px;
    height: 0.1px;
    z-index: -1;
}

.ktp-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 110px;
    background: linear-gradient(145deg, #f9fcff, #f2f6fd);
    border: 2px dashed #bfd4e2;
    border-radius: 20px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.02, 0.8, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    color: #1e3b5c;
    text-align: center;
}

.ktp-upload-label:hover {
    border-color: #0a3b5c;
    background: linear-gradient(145deg, #ffffff, #f5faff);
    box-shadow: 0 8px 20px rgba(10, 59, 92, 0.08);
    transform: scale(1.01);
}

.ktp-upload-label i {
    font-size: 32px;
    color: #0a3b5c;
    margin-bottom: 8px;
    text-shadow: 0 2px 6px rgba(10, 59, 92, 0.1);
    transition: transform 0.2s;
}

.ktp-upload-label:hover i {
    transform: translateY(-2px);
}

.upload-text {
    font-weight: 600;
    font-size: 15px;
    color: #0a3b5c;
    margin-bottom: 4px;
}

.upload-hint {
    font-size: 12px;
    color: #6b7c93;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.upload-hint i {
    font-size: 12px;
    color: #8099aa;
    margin-bottom: 0;
    text-shadow: none;
}

.ktp-upload-label.file-selected {
    border-style: solid;
    border-color: #0a3b5c;
    background: linear-gradient(145deg, #edf6ff, #e5f0fd);
    justify-content: center;
    align-items: flex-start;
    gap: 6px;
}

.ktp-upload-label.file-selected i {
    font-size: 24px;
    margin-bottom: 0;
    color: #0f4a6f;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: space-between;
}

.file-name {
    font-weight: 600;
    font-size: 14px;
    color: #1e3a5f;
    background: rgba(10, 59, 92, 0.06);
    padding: 6px 14px;
    border-radius: 40px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    border: 1px solid rgba(10, 59, 92, 0.1);
}

.btn-clear-file {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccdbe9;
    color: #4a6479;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
}

.btn-clear-file:hover {
    background: white;
    border-color: #b91c1c;
    color: #b91c1c;
}

.btn-clear-file i {
    font-size: 12px;
    margin-bottom: 0;
    color: currentColor;
}

.file-selected .upload-text,
.file-selected .upload-hint {
    display: none;
}

/* Print styles */
@media print {
    .header-section button,
    .bs-stepper,
    .btn {
        display: none;
    }
}
