/* CSS cho thiết kế mới của trang price.html */

/* Thiết lập chung */
.price-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 24px;
    margin-top: 80px;
}

.price-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.price-header h1 {
    font-size: 32px;
    color: #1d1d1f;
    margin-bottom: 16px;
}

.price-header p {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Thiết kế mới cho form */
.price-form {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

/* Bước chọn kho */
.warehouse-selection {
    text-align: center;
    padding: 20px 0;
    transition: all 0.5s cubic-bezier(0.42, 0, 0.58, 1);
}

.warehouse-selection h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1d1d1f;
}

.warehouse-selection p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.warehouse-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.warehouse-option {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 200px;
    background: #f5f5f7;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.warehouse-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.warehouse-option.selected {
    border-color: #0066cc;
    background: rgba(0, 102, 204, 0.05);
}

.warehouse-option.selected::before {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: #0066cc;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.warehouse-icon {
    font-size: 36px;
    margin-bottom: 10px;
    color: #0066cc;
}

.warehouse-name {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 5px;
    color: #1d1d1f;
}

.warehouse-description {
    font-size: 14px;
    color: #666;
}

/* Form chi tiết */
.price-details {
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.42, 0, 0.58, 1);
}

.price-details.active {
    opacity: 1;
    height: auto;
    overflow: visible;
}

/* Animation cho chuyển đổi */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

.fade-in {
    animation: fadeIn 0.5s forwards;
}

.fade-out {
    animation: fadeOut 0.5s forwards;
}

/* Nút chuyển đổi */
.btn-continue {
    background: linear-gradient(45deg, #0066cc, #0095ff);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-continue:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.4);
    background: linear-gradient(45deg, #005bb7, #0086e6);
}

.btn-back {
    background: transparent;
    color: #0066cc;
    border: 1px solid #0066cc;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
}

.btn-back:hover {
    background: rgba(0, 102, 204, 0.05);
}

.btn-back svg {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

/* Loader */
.loader {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
    justify-content: center;
    align-items: center;
}

.loader.active {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 102, 204, 0.2);
    border-radius: 50%;
    border-top-color: #0066cc;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .warehouse-option {
        flex: 0 0 100%;
    }
    
    .price-form {
        padding: 20px;
    }
    
    .price-header h1 {
        font-size: 24px;
    }
    
    .price-header p {
        font-size: 16px;
    }
}
