:root {
    --bg-color: #f5f7fa;
    --text-color: #222;
    --card-bg: #ffffff;
    --card-header-bg: #4A90E2;
    --btn-primary-bg: #50E3C2;
    --btn-primary-hover: #48CFAE;
    --btn-secondary-bg: #E0E0E0;
}

.dark-theme {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --card-bg: #2c2c2c;
    --card-header-bg: #333333;
    --btn-primary-bg: #3cbfa3;
    --btn-primary-hover: #34a58b;
    --btn-secondary-bg: #444444;
}

/* Apply the variables */
body {
    background: var(--bg-color) !important;
    color: var(--text-color) !important;
}

.card {
    background-color: var(--card-bg) !important;
}

.card-header {
    background-color: var(--card-header-bg) !important;
}

.btn-primary {
    background-color: var(--btn-primary-bg) !important;
}

.btn-primary:hover {
    background-color: var(--btn-primary-hover) !important;
}

.btn-secondary {
    background-color: var(--btn-secondary-bg) !important;
}

/* Toggle button styling */
.theme-toggle-btn {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 99999;
    border-radius: 20px;
}




body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, 'Liberation Sans', sans-serif;
    color: #222;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

.progress {
    border-radius: 20px !important;
    overflow: hidden; /* ensures fill stays inside */
    background-color: #e2e8f0 !important;
}

.progress-bar {
    border-radius: 0 !important; /* remove inner rounding to avoid gaps */
}


.progress-container {
    width: 100%;
    background: #e2e8f0; /* light gray */
    border-radius: 10px;
    height: 25px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    width: 30%; /* Change this value for progress */
    background: #4b9ffb;
    height: 100%;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 600;
    transition: width 0.3s ease;
}


/* Subtle dot pattern overlay using a pseudo element */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.95;
    z-index: 0;
}

/* Ensure main app content sits above the overlay */
#app, main, .container {
    position: relative;
    z-index: 1;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#preloader .progress {
    width: 200px;
    margin-top: 20px;
}

.container {
    max-width: 800px;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background-color: #4A90E2;
    color: white;
    font-weight: 600;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    padding: 20px;
    font-size: 1.2rem;
}

.btn-primary {
    background-color: #50E3C2;
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #48CFAE;
}

.btn-secondary {
    background-color: #E0E0E0;
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    transition: background-color 0.2s;
    color: #333;
}

.btn-secondary:hover {
    background-color: #D0D0D0;
}

.progress-bar {
    background-color: #4A90E2;
    height: 10px;
    border-radius: 5px;
}

.form-check-label {
    font-weight: 500;
}

.form-text {
    font-size: 0.9rem;
}

#proposal {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.proposal-header {
    margin-bottom: 20px;
}

.package-details {
    margin-bottom: 20px;
}

/* Custom Checkboxes and Radios */
.form-check-input {
    display: none;
}

.form-check-label {
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 25px;
}

.form-check-label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 25px;
    height: 25px;
    border: 2px solid #4A90E2;
    border-radius: 5px;
    background-color: #fff;
}

.form-check-input:checked + .form-check-label:before {
    background-color: #4A90E2;
    border-color: #4A90E2;
}

.form-check-input:checked + .form-check-label:after {
    content: '';
    position: absolute;
    left: 9px;
    top: 5px;
    width: 8px;
    height: 15px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* Radio button specifics */
.form-check-label.radio-label:before {
    border-radius: 50%;
}