.contact-hero {
    position: relative;
    background-image: url('../images/index/index_1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    min-height: 100vh;
    display: block;
    padding: 100px 20px 60px;
}

.contact-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.85) 0%, rgba(10, 10, 10, 0.9) 100%);
    backdrop-filter: blur(5px);
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 25px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-hero-content h1 {
    font-size: 48px;
    color: #f5e6d3;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.contact-hero-content p {
    font-size: 18px;
    color: #d4a855;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    width: 100%;
    margin: 20px auto 0px;  
    padding: 0 20px;
}

.menu-card {
    background: rgba(26, 26, 46, 0.7);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(212, 168, 85, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.menu-card:hover {
    transform: translateY(-10px);
    background: rgba(26, 26, 46, 0.85);
    box-shadow: 0 20px 60px rgba(212, 168, 85, 0.4);
    border-color: rgba(212, 168, 85, 0.5);
}

.menu-card-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.menu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-card:hover .menu-card-image img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
}

.menu-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.menu-card-content h3 {
    font-size: 24px;
    color: #d4a855;
    margin-bottom: 12px;
    font-weight: 700;
}

.menu-description {
    color: #aaa !important;
    font-size: 14px !important;
    line-height: 1.4;
    margin-bottom: 20px;
    flex: 1;
}

.menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(212, 168, 85, 0.2);
}

.menu-price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-value {
    font-size: 24px;
    color: #f5e6d3;
    font-weight: 700;
}

.book-button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #d4a855 0%, #c49845 100%);
    border: none;
    border-radius: 10px;
    color: #1a1a2e;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.book-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 168, 85, 0.4);
    background: linear-gradient(135deg, #c49845 0%, #b48835 100%);
}

.book-button:active {
    transform: translateY(0);
}

.book-button i {
    font-size: 16px;
}

.cart-badge {
    position: relative;
    cursor: pointer;
    padding: 8px 12px;
    color: #fff;
    transition: transform 0.2s;
}

.cart-badge:hover {
    transform: scale(1.05);
}

.cart-badge i {
    font-size: 20px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #d4a855;
    color: #1a1a2e;
    font-size: 12px;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

#cartModal {
    display: none;
    position: fixed;
    z-index: 10001; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#cartModal.active {
    display: flex;
}

#cartModal .modal-content {
    background: linear-gradient(135deg, #2a1f10 0%, #3d3020 100%);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(212, 168, 85, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    color: #f5e6d3;  /* Светъл текст за контраст */
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#cartModal .modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 35px;
    font-weight: bold;
    color: #d4a855;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    background: none;
    border: none;
}

#cartModal .modal-close:hover {
    color: #f5e6d3;
    transform: rotate(90deg);
}

#cartModal .modal-header {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(212, 168, 85, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

#cartModal .modal-header h3 {
    margin: 0;
    font-size: 28px;
    color: #d4a855;
    letter-spacing: 1px;
    text-align: center;
    flex: 1;
}

#cartModal .modal-body {
    padding: 0 15px 0 0;
    overflow-y: auto;
    flex: 1;
}

#cartModal .modal-body::-webkit-scrollbar {
    width: 10px;
}

#cartModal .modal-body::-webkit-scrollbar-track {
    background: rgba(10, 10, 10, 0.3);
    border-radius: 10px;
}

#cartModal .modal-body::-webkit-scrollbar-thumb {
    background: #d4a855;
    border-radius: 10px;
}

#cartModal .cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#cartModal .cart-empty {
    text-align: center;
    color: #aaa;
    padding: 30px;
    font-style: italic;
    font-size: 15px;
}

#cartModal .cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(212, 168, 85, 0.1);
    border-radius: 12px;
    border-left: 4px solid #d4a855;
    transition: background 0.2s ease;
}

#cartModal .cart-item:hover {
    background: rgba(212, 168, 85, 0.15);
}

#cartModal .cart-item-info {
    flex: 1;
    padding-right: 15px;
}

#cartModal .cart-item-name {
    font-weight: 600;
    font-size: 16px;
    color: #f5e6d3;
    margin-bottom: 4px;
    line-height: 1.3;
}

#cartModal .cart-item-qty {
    font-size: 13px;
    color: #aaa;
}

#cartModal .cart-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

#cartModal .cart-qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(212, 168, 85, 0.5);
    background: transparent;
    color: #d4a855;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

#cartModal .cart-qty-btn:hover {
    background: #d4a855;
    color: #2a1f10;
    border-color: #d4a855;
    transform: scale(1.05);
}

#cartModal .cart-qty-btn:active {
    transform: scale(0.95);
}

#cartModal .cart-remove {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 18px;
    padding: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

#cartModal .cart-remove:hover {
    color: #ffffff;
    transform: scale(1.1);
}

#cartModal .cart-summary {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 168, 85, 0.3);
}

#cartModal .cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
}

#cartModal .cart-total span {
    color: #aaa;
}

#cartModal .cart-total strong {
    color: #d4a855;
    font-size: 24px;
    font-weight: 700;
}

#cartModal .modal-footer {
    padding-top: 25px;
    margin-top: 10px;
    border-top: 1px solid rgba(212, 168, 85, 0.3);
    display: flex;
    gap: 12px;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.1);
    color: #f5e6d3;
    border: 1px solid rgba(212, 168, 85, 0.3);
}

#cartModal .btn-primary {
    background: linear-gradient(135deg, #d4a855 0%, #c49845 100%);
    color: #2a1f10;
}

#cartModal .btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #c49845 0%, #b48835 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 168, 85, 0.4);
}

#cartModal .btn-primary:disabled {
    background: rgba(212, 168, 85, 0.3);
    color: #666;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #f5e6d3;
    border: 1px solid rgba(212, 168, 85, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #d4a855;
}

.breakfast-time,
.room-selection{
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 168, 85, 0.3);
}

.breakfast-time label,
.room-selection label {
    display: block;
    color: #aaa;
    font-size: 14px;
    margin-bottom: 8px;
}

.time-select,
.room-select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 168, 85, 0.5);
    border-radius: 12px;
    color: #f5e6d3;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4a855' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.time-select:focus,
.room-select:focus {
    outline: none;
    border-color: #d4a855;
    box-shadow: 0 0 0 3px rgba(212, 168, 85, 0.2);
}

.time-select option,
.room-select option {
    background: #2a1f10;
    color: #f5e6d3;
    padding: 12px;
}

.time-hint,
.room-hint {
    color: #d4a855;
    font-size: 12px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

#submitOrderBtn:disabled {
    background: rgba(212, 168, 85, 0.3);
    color: #666;
    cursor: not-allowed;
}

.cart-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 500;
    z-index: 10002;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideInToast 0.3s ease;
}

@keyframes slideInToast {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToast {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        min-height: auto;
        padding: 90px 15px 40px;
    }
    
    .contact-hero-content h1 {
        font-size: 32px;
    }
    
    .contact-hero-content p {
        font-size: 16px;
    }

    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
        margin: 20px auto 0;
        padding: 0 15px;
    }
    
    .menu-card-image {
        height: 200px;
    }
    
    .menu-card-content h3 {
        font-size: 20px;
    }
    
    .price-value {
        font-size: 20px;
    }

    #cartModal .modal-content {
        padding: 30px 25px;
        max-width: 100%;
        margin: 10px;
    }
    
    #cartModal .modal-header h3 {
        font-size: 24px;
    }
    
    #cartModal .cart-item {
        padding: 12px 16px;
    }
    
    #cartModal .cart-item-name {
        font-size: 15px;
    }
    
    #cartModal .modal-footer {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 80px 10px 30px;
    }
    
    .contact-hero-content h1 {
        font-size: 26px;
    }
    
    .contact-hero-content p {
        font-size: 14px;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 15px auto 0;
        padding: 0 10px;
    }
    
    .menu-card-image {
        height: 180px;
    }
    
    .menu-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .menu-price {
        text-align: center;
    }
    
    .book-button {
        justify-content: center;
        width: 100%;
    }

    #cartModal .modal-content {
        padding: 25px 20px;
    }
    
    #cartModal .modal-header h3 {
        font-size: 22px;
    }
    
    #cartModal .cart-total {
        font-size: 16px;
    }
    
    #cartModal .cart-total strong {
        font-size: 20px;
    }
}