/* Address Page Styles */

.address-form-section {
    padding-bottom: 100px; /* Extra padding for the fixed footer */
}

.card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-5px);
}

/* Form Styles */
.form-floating > .form-control {
    height: 60px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.form-floating > .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(140, 9, 31, 0.1);
}

.form-floating > label {
    padding: 1rem 1.25rem;
    color: #666;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-color);
    transform: scale(0.85) translateY(-0.75rem) translateX(0.15rem);
}

/* Section Headers */
h4 {
    font-weight: 600;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

/* Accommodation Type Selector */
.accommodation-type-selector .btn-outline-primary {
    border-width: 2px;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.accommodation-type-selector .btn-check:checked + .btn-outline-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(140, 9, 31, 0.2);
    transform: translateY(-2px);
    color: white;
}

.accommodation-type-selector .btn-outline-primary:hover {
    background-color: rgba(140, 9, 31, 0.05);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Submit Button */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #6b071a);
    border: none;
    border-radius: 10px;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(140, 9, 31, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6b071a, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(140, 9, 31, 0.3);
}

.btn-outline-secondary {
    border-radius: 10px;
    padding: 12px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
}

/* Total Amount Display */
.total-amount-display {
    line-height: 1.2;
}

.total-amount-display .text-muted {
    font-size: 0.85rem;
    font-weight: 500;
}

.total-amount-display .text-primary {
    color: var(--primary-color) !important;
}

/* Cart Footer */
.cart-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.cart-total {
    font-size: 1rem;
    font-weight: 500;
}

.cart-total-amount {
    font-size: 1.5rem;
    font-weight: 700;
}

.cart-footer .btn-light {
    background-color: white;
    color: var(--primary-color);
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cart-footer .btn-light:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .form-floating > .form-control {
        height: 55px;
    }

    .card-body {
        padding: 1.5rem !important;
    }

    .btn-primary, .btn-outline-secondary {
        padding: 10px 20px;
    }

    /* Adjust the submit button area for mobile */
    .d-flex.justify-content-between.align-items-center.mt-4 {
        flex-direction: column;
        align-items: stretch !important;
        gap: 15px;
    }

    .d-flex.justify-content-between.align-items-center.mt-4 > a {
        width: 100%;
        text-align: center;
    }

    .d-flex.justify-content-between.align-items-center.mt-4 > div {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .total-amount-display {
        text-align: center !important;
        margin-right: 0 !important;
        margin-bottom: 10px;
    }

    .total-amount-display .fs-4 {
        font-size: 1.5rem !important;
    }

    button[type="submit"] {
        width: 100%;
    }
}
