body {
    background-color: #f5f7fa;
    min-height: 100vh;
    padding: 2rem 0;
}

.container {
    max-width: 800px;
    padding: 0 1.5rem;
}

.logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 2.5rem;
}

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: white;
}

.card-body {
    padding: 2.5rem !important;
}

/* Registration Info Box */
.registration-info {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.registration-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.registration-info-header:hover {
    background-color: #eef0f2;
}

.registration-info-header h5 {
    margin: 0;
    color: #3742B8;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.registration-info-content {
    font-size: 1.4rem;
    color: #495057;
    line-height: 1.6;
}

.registration-info-content p {
    margin-bottom: 1rem;
}

.registration-info-content p:last-child {
    margin-bottom: 0;
}

.registration-info-toggle {
    color: #3742B8;
    background: none;
    border: none;
    padding: 0.25rem;
    font-size: 1.25rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(55, 66, 184, 0.1);
}

.registration-info-toggle:hover {
    background-color: rgba(55, 66, 184, 0.2);
}

.registration-info-toggle.collapsed {
    transform: rotate(-180deg);
}

/* Progress indicator */
.step-indicator {
    text-align: right;
    color: #3742B8;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

/* Progress bar */
.progress-container {
    margin-bottom: 3rem;
}

.progress {
    width: 100%;
    height: 8px;
    background-color: #E8EAF6;
    border-radius: 100px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #3742B8;
    border-radius: 100px;
    transition: width 0.6s ease;
}

/* Form styling */
h2 {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    display: block;
}

.form-control {
    height: auto;
    padding: 0.875rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: white;
    width: 100%;
}

.form-control:focus {
    border-color: #3742B8;
    box-shadow: 0 0 0 3px rgba(55, 66, 184, 0.15);
    outline: none;
}

.help-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.errorlist {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding: 0;
    list-style: none;
}

/* Checkbox styling */
.form-check {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-check-input {
    width: 24px;
    height: 24px;
    border: 2px solid #3742B8;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
    transition: all 0.2s ease;
}

.form-check-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(55, 66, 184, 0.15);
    border-color: #3742B8;
}

.form-check-input:checked {
    background-color: #3742B8;
    border-color: #3742B8;
}

.form-check-label {
    font-size: 0.95rem;
    color: #2c3e50;
    cursor: pointer;
    line-height: 1.4;
    margin: 0;
}

/* Larger checkbox specifically for step_user */
#registrationInfo ~ .form-fields .form-check-input {
    width: 2em;
    height: 2em;
}

/* Terms text styling */
.form-check label {
    font-size: 0.9rem;
    color: #2c3e50;
    cursor: pointer;
    user-select: none;
}

/* Button styling */
.btn {
    padding: 0.875rem 1.75rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.continue-btn {
    background: #3742B8;
    border: none;
    color: white;
    padding-right: 3rem !important;
    position: relative;
}

.continue-btn::after {
    content: '→';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
}

.continue-btn:hover {
    background: #4550D0;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(55, 66, 184, 0.2);
}

.btn-outline-primary {
    color: #3742B8;
    border: 2px solid #3742B8;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #3742B8;
    color: white;
}

#verify-secret-btn {
    background: #3742B8;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

/* Update the column width in larger screens */
@media (min-width: 992px) {  /* lg breakpoint */
    .col-lg-6 {
        flex: 0 0 auto;
        width: 75% !important;  /* Make it wider, overriding Bootstrap's default */
    }
}

/* Optional: Adjust medium screens too */
@media (min-width: 768px) and (max-width: 991.98px) {
    .col-md-8 {
                flex: 0 0 auto;
                width: 85% !important;
    }
}

/* Gateway Management Styles */
.gateway-management {
    border-top: 1px solid #eaeaea;
    padding-top: 1rem;
}

.gateway-verification-message {
    font-size: 0.875rem;
}

.verified-gateways {
    margin-top: 1rem;
}

.gateway-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #eaeaea;
    border-radius: 0.25rem;
}

.gateway-list:empty {
    padding: 0.75rem;
    color: #6c757d;
    font-style: italic;
    border: 1px dashed #dee2e6;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gateway-list:empty::after {
    content: "No gateways added yet";
}

.gateway-list .list-group-item {
    padding: 0.5rem 0.75rem;
    border-left: none;
    border-right: none;
}

.gateway-list .list-group-item:first-child {
    border-top: none;
}

.gateway-list .list-group-item:last-child {
    border-bottom: none;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Subscription Review Styles */
.subscription-review {
    padding: 1rem 0;
}

.review-section {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.review-section-title {
    color: #3742B8;
    font-weight: 600;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
}

.review-content {
    font-size: 0.95rem;
}

.review-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.review-row:last-child {
    border-bottom: none;
}

.review-label {
    color: #6c757d;
    flex: 0 0 40%;
}

.review-value {
    color: #2c3e50;
    font-weight: 500;
    text-align: right;
    flex: 0 0 60%;
}

.property-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.property-name {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

.terms-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

/* Update subscription breakdown styles to match review layout */
#subscriptionBreakdown .card {
    box-shadow: none;
    border: none;
    background: transparent;
}

#subscriptionBreakdown .card-body {
    padding: 0 !important;
}

#subscriptionBreakdown .row {
    margin: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

#subscriptionBreakdown .row:last-child {
    border-bottom: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #e9ecef;
}

/* Toilet Details Styling */
.toilet-details {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

.toilet-details h6 {
    font-size: 0.875rem;
}

.toilet-list {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.toilet-header {
    display: flex;
    background-color: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
    color: #6c757d;
}

.toilet-row {
    display: flex;
    border-bottom: 1px solid #e9ecef;
    background-color: white;
}

.toilet-row:last-child {
    border-bottom: none;
}

.toilet-row:hover {
    background-color: #f8f9fa;
}

.toilet-column {
    flex: 1;
    padding: 0.75rem 1rem;
}

.toilet-column:first-child {
    border-right: 1px solid #e9ecef;
}

/* Cancellation Policy Alert Styles */
.cancellation-policy-alert {
    background-color: #f8f9fa;
    border: 2px solid #ffc107;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cancellation-policy-header {
    background-color: #fff3cd;
    color: #856404;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 6px 6px 0 0;
    display: flex;
    align-items: center;
}

.cancellation-policy-header i {
    font-size: 1.3rem;
    margin-right: 0.5rem;
}

.cancellation-policy-content {
    padding: 1.5rem;
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cancellation-policy-content p {
    margin-bottom: 1rem;
}

.cancellation-policy-content ul {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.cancellation-policy-content li {
    margin-bottom: 0.5rem;
}

.cancellation-policy-content .fw-bold {
    color: #856404;
    margin-bottom: 0.5rem;
}