/**
 * Stiluri moderne pentru pagina de programare
 */

/* Variabile pentru culori */
:root {
    --primary-rgb: 183, 104, 218; /* Culoarea principală purpurie */
    --success-rgb: 25, 135, 84;
    --warning-rgb: 255, 193, 7;
    --danger-rgb: 220, 53, 69;
    --info-rgb: 13, 202, 240;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition-speed: 0.3s;
}

/* Animații */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--primary-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0);
    }
}

/* Containerul principal de programare */
.appointment-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    animation: fadeIn 0.5s ease-out;
}

@media (max-width: 992px) {
    .appointment-container {
        grid-template-columns: 1fr;
    }
}

/* Card pentru informații */
.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) ease;
    height: fit-content;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.7), rgba(var(--primary-rgb), 0.3));
    opacity: 1;
}

.info-card h3 {
    color: rgba(var(--primary-rgb), 1);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    padding: 0.5rem 0;
    position: relative;
}

/* Stiluri pentru elementele de informații */
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(var(--primary-rgb), 0.03);
    transition: all var(--transition-speed) ease;
}

.info-item:hover {
    background: rgba(var(--primary-rgb), 0.06);
    transform: translateX(5px);
}

.info-item i {
    font-size: 1.5rem;
    color: rgba(var(--primary-rgb), 0.8);
    background: rgba(var(--primary-rgb), 0.1);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.info-item h4 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.info-item p, .info-item small {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* Buton pentru harta */
.map-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    margin-top: 0.75rem;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, #8e24aa, #b39ddb);
    color: white;
    text-decoration: none;
    font-weight: 500;
    border-radius: 6px;
    font-size: 0.8rem;
    box-shadow: 0 2px 8px rgba(142, 36, 170, 0.3);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    width: fit-content;
}

.map-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.map-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(142, 36, 170, 0.4);
    color: white;
}

.map-button:hover::before {
    transform: translateX(0);
}

.map-button:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(142, 36, 170, 0.4);
}

.map-button i {
    font-size: 1rem;
}

/* Card pentru formular */
.form-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.7), rgba(var(--primary-rgb), 0.3));
    opacity: 1;
}

.form-card h3 {
    color: rgba(var(--primary-rgb), 1);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    padding: 0.5rem 0;
    position: relative;
}

/* Stiluri pentru formulare */
.modern-form .form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.modern-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #444;
    transition: color var(--transition-speed) ease;
}

.modern-form input[type="text"],
.modern-form input[type="email"],
.modern-form input[type="tel"],
.modern-form input[type="date"],
.modern-form select,
.modern-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: #f8f9fa;
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
    color: #333;
}

.modern-form input:focus,
.modern-form select:focus,
.modern-form textarea:focus {
    outline: none;
    border-color: rgba(var(--primary-rgb), 0.5);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
    background: #fff;
}

.modern-form .form-tip {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Checkbox personalizat */
.agreement-box {
    background-color: rgba(var(--primary-rgb), 0.05);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

.custom-checkbox {
    display: flex;
    align-items: flex-start;
    position: relative;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-checkbox .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    color: #444;
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 500;
}

.custom-checkbox .checkbox-label::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(var(--primary-rgb), 0.5);
    border-radius: 4px;
    background-color: white;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.custom-checkbox input[type="checkbox"]:checked + .checkbox-label::before {
    background-color: rgba(var(--primary-rgb), 1);
    border-color: rgba(var(--primary-rgb), 1);
}

.custom-checkbox input[type="checkbox"]:checked + .checkbox-label::after {
    content: '✓';
    position: absolute;
    left: 6px;
    top: 1px;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.custom-checkbox input[type="checkbox"]:focus + .checkbox-label::before {
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
}

.custom-checkbox a {
    color: rgba(var(--primary-rgb), 1);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.custom-checkbox a:hover {
    color: rgba(var(--primary-rgb), 0.8);
}

/* Stiluri pentru mesaje */
.appointment-message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.5s ease;
    animation: fadeIn 0.5s ease-out;
}

.appointment-message.success {
    background-color: rgba(25, 135, 84, 0.1);
    color: #2a8d4e;
    border-left: 4px solid #2a8d4e;
}

.appointment-message.error {
    background-color: rgba(220, 53, 69, 0.1);
    color: #d62839;
    border-left: 4px solid #d62839;
}

.appointment-message.warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #f9a826;
    border-left: 4px solid #f9a826;
}

.appointment-message i {
    font-size: 1.25rem;
}

/* Stiluri pentru butoane */
.modern-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, rgba(var(--primary-rgb), 1), rgba(var(--primary-rgb), 0.8));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.3);
    position: relative;
    overflow: hidden;
}

.modern-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.modern-btn:hover::before {
    transform: translateX(0);
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(var(--primary-rgb), 0.4);
}

.modern-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(var(--primary-rgb), 0.4);
}

.modern-btn i {
    font-size: 1rem;
}

/* Box informativ */
.info-box {
    background: rgba(13, 202, 240, 0.1);
    border-left: 4px solid rgba(13, 202, 240, 0.8);
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.info-box p {
    margin: 0;
    color: #0c7d98;
}

/* Secțiuni de beneficii */
.benefits-section {
    background: #f8f9fa;
    padding: 3rem 0;
    margin-top: 3rem;
    border-radius: 12px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 0 1.5rem;
}

.benefit-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: all var(--transition-speed) ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.benefit-card i {
    font-size: 3rem;
    color: rgba(var(--primary-rgb), 0.8);
    margin-bottom: 1rem;
    background: rgba(var(--primary-rgb), 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1rem auto;
}

.benefit-card h3 {
    margin-bottom: 0.75rem;
    color: #333;
}

.benefit-card p {
    color: #666;
    line-height: 1.6;
}