/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #222;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #888;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

/* Step navigation */
.step-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    font-weight: 600;
    color: #888;
    position: relative;
}

.step.active {
    background-color: #d4af8a;
    color: white;
}

.step.completed {
    background-color: #a0d4af;
    color: white;
}

.step-line {
    height: 2px;
    background-color: #eee;
    flex-grow: 1;
    margin-top: 14px;
}

.step-line.completed {
    background-color: #a0d4af;
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background-color: white;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1em;
}

.btn {
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #d4af8a, #c19a6b);
    color: white;
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c19a6b, #b08a5e);
    transform: translateY(-2px);
}
.btn-primary:disabled:hover {
    transform: none;
}

.btn-secondary {
    background: #eee;
    color: #555;
    margin-right: 10px;
}

.btn-secondary:hover {
    background: #ddd;
}

/* Agent selection */
.agent-list {
    margin-top: 20px;
}

.agent-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.agent-card:hover {
    border-color: #d4af8a;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.agent-card.selected {
    border-color: #d4af8a;
    background-color: rgba(212, 175, 138, 0.1);
}

.agent-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af8a, #c19a6b);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-weight: 600;
    font-size: 20px;
}

.agent-details {
    flex-grow: 1;
}

.agent-name {
    font-weight: 600;
    margin: 0 0 5px;
}

.agent-info {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.agent-rating {
    color: #d4af8a;
    font-weight: 600;
}

.agent-availability {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 8px;
}

.available {
    background-color: rgba(160, 212, 175, 0.2);
    color: #4caf50;
}

.unavailable {
    background-color: rgba(255, 152, 152, 0.2);
    color: #f44336;
}

/* Confirmation */
.confirmation {
    text-align: center;
    padding: 20px 0;
}

.confirmation-icon {
    font-size: 60px;
    color: #a0d4af;
    margin-bottom: 20px;
}

.confirmation-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 10px;
}

.confirmation-text {
    color: #666;
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .modal-container {
        width: 95%;
    }
}