/* Progress Bar Styles */
.progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 43, 109, 0.95);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.progress-overlay.active {
    display: flex;
}

.progress-container {
    width: 90%;
    max-width: 500px;
    background: var(--cream);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.progress-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.progress-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.progress-bar-wrapper {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-green), #00a65a);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.progress-percentage {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.progress-status {
    font-size: 0.9rem;
    color: #666;
}

.verification-box {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    text-align: left;
    transition: all 0.25s ease;
    border-width: 1px;
    border-style: solid;
}

.verification-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.verification-subtext {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.verification-box.warning {
    background-color: #fff5f5;
    border-color: #f44336;
    color: #b71c1c;
}

.verification-box.warning .verification-btn {
    border-color: #f44336;
    color: #b71c1c;
}

.verification-box.success {
    background-color: #f1fff4;
    border-color: #2e7d32;
    color: #1b5e20;
}

.verification-box.success .verification-btn {
    border-color: #1b5e20;
    color: #1b5e20;
}

.verification-btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border-radius: 6px;
    background: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    border-width: 2px;
    border-style: solid;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.verification-btn:hover {
    transform: translateY(-1px);
}

:root {
    --cream: #fffcf5;
    --primary-blue: #002b6d;
    --brown: #0C0101;
    --accent-green: #00D37F;
    --light-blue: #e6f0ff;
    --light-cream: #fffefb;
}

* {
    font-family: 'Inter', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: url('https://images.unsplash.com/photo-1613665813446-82a78c468a1d?q=80&w=1158&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    background-color: var(--cream);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 43, 109, 0.85);
    z-index: -1;
}

.top-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-blue);
    color: var(--cream);
    font-weight: 600;
    padding: 12px 20px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(12, 1, 1, 0.1);
}

.main-container {
    margin-top: 70px;
    padding: 40px 20px;
    min-height: calc(100vh - 70px);
}

.form-card {
    max-width: 900px;
    margin: 0 auto 40px;
    background: var(--cream);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(12, 1, 1, 0.15);
    border: 1px solid rgba(12, 1, 1, 0.1);
}

.form-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

.form-subtitle {
    text-align: center;
    color: var(--brown);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    opacity: 0.8;
}

.logo-container {
    text-align: center;
    margin: 2rem 0 2.5rem 0;
}

.logo-container img {
    max-width: 280px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.info-box {
    background-color: var(--light-blue);
    border-left: 4px solid var(--primary-blue);
    padding: 1.5rem;
    margin-top: 1rem;
    border-radius: 4px;
    color: var(--brown);
}

.info-box h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.info-box ul {
    margin-bottom: 0;
    padding-left: 1.2rem;
}

.info-box li {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.help-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0044aa 100%);
    color: var(--cream);
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(12, 1, 1, 0.2);
    z-index: 999;
    transition: all 0.3s;
}

.help-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(12, 1, 1, 0.3);
    color: var(--cream);
}

.footer {
    background-color: var(--primary-blue);
    padding: 30px 20px;
    text-align: center;
}

.footer-text {
    color: var(--cream);
    font-weight: 600;
    font-size: 1rem;
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 1rem;
}

.image-preview-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(12, 1, 1, 0.1);
}

.conditional-block {
    display: none;
    margin-top: 1rem;
    padding: 1.5rem;
    background-color: var(--light-cream);
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
    color: var(--brown);
}

.conditional-block.show {
    display: block;
}

.form-label {
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.form-label.required::after {
    content: ' *';
    color: #dc3545;
}

.btn-success {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    padding: 12px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cream);
}

.btn-success:hover {
    background-color: #001a4d;
    border-color: #001a4d;
    color: var(--cream);
}

.finance-company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 1rem;
}

.finance-company-option {
    position: relative;
}

.finance-company-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.finance-company-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px solid rgba(12, 1, 1, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--cream);
    min-height: 180px;
}

.finance-company-option input[type="radio"]:checked + .finance-company-card {
    border-color: var(--primary-blue);
    background-color: var(--light-blue);
    box-shadow: 0 0 0 3px rgba(0, 43, 109, 0.1);
}

.finance-company-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(12, 1, 1, 0.1);
}

.finance-logo {
    width: 100%;
    max-width: 140px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 12px;
}

.finance-company-name {
    font-weight: 600;
    color: var(--primary-blue);
    text-align: center;
    font-size: 0.95rem;
}

.pac-container {
    background-color: var(--cream);
    position: absolute;
    z-index: 1000;
    border-radius: 8px;
    border: 1px solid rgba(12, 1, 1, 0.1);
    box-shadow: 0 4px 12px rgba(12, 1, 1, 0.15);
    max-width: 100%;
}

.pac-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid rgba(12, 1, 1, 0.1);
    color: var(--brown);
}

.pac-item:hover {
    background-color: rgba(0, 43, 109, 0.05);
}

.pac-item-selected {
    background-color: var(--light-blue);
}

.pac-matched {
    font-weight: 600;
    color: var(--primary-blue);
}

.wifi-section {
    background: linear-gradient(135deg, var(--light-blue) 0%, rgba(0, 43, 109, 0.05) 100%);
    border-left: 4px solid var(--primary-blue);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0 2rem 0;
    color: var(--brown);
}

.wifi-section h6 {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.example-btn {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.4rem 0.8rem;
    background-color: var(--light-blue);
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.example-btn:hover {
    background-color: var(--primary-blue);
    color: var(--cream);
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(12, 1, 1, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--cream);
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    color: var(--brown);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--brown);
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--primary-blue);
}

.modal-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid rgba(12, 1, 1, 0.1);
}

.modal-title {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.form-control, .form-select {
    background-color: var(--light-cream);
    border: 1px solid rgba(12, 1, 1, 0.2);
    color: var(--brown);
}

.form-control:focus, .form-select:focus {
    background-color: var(--light-cream);
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.25rem rgba(0, 43, 109, 0.25);
    color: var(--brown);
}

.form-control::placeholder {
    color: rgba(12, 1, 1, 0.5);
}

.form-check-input:checked {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.form-check-label {
    color: var(--brown);
}

.text-muted {
    color: rgba(12, 1, 1, 0.6) !important;
}

h5 {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

.invalid-feedback {
    color: #dc3545;
}

.is-invalid {
    border-color: #dc3545;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #001a4d;
}

.photo-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.photo-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(0, 43, 109, 0.2);
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview-item .pdf-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    font-size: 12px;
    color: var(--primary-blue);
    font-weight: 600;
}

.photo-remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dc3545;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.photo-remove-btn:hover {
    background: #b02a37;
}

.image-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.image-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 43, 109, 0.2);
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #dc3545;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.image-remove-btn:hover {
    background: #b02a37;
}
