:root {
    /* SZESE színek */
    --szese-primary: #2b3e50;  /* Sötétkék */
    --szese-secondary: #00b4d8; /* Világoskék/cián */
    --szese-accent: #90e0ef;   /* Világos cián */
    
    /* DDC színek */
    --ddc-primary: #2b3e50;    /* Sötétkék */
    --ddc-secondary: #00b4d8;  /* Világoskék */
    
    /* További színek */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--szese-primary) 0%, var(--ddc-secondary) 100%);
    min-height: 100vh;
    color: var(--szese-primary);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.header {
    background: var(--szese-primary);
    color: var(--white);
    text-align: center;
    padding: 0;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header-title-section {
    background: var(--szese-primary);
    padding: 1.5rem 2rem;
    margin-bottom: 0;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header > p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.header-content {
    background: var(--light-gray);
    color: var(--szese-primary);
    padding: 2rem;
    width: 100%;
}

.header-content .welcome-text {
    max-width: 600px;
    margin: 0 auto;
}

.welcome-text h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--szese-primary);
}

.welcome-text ul {
    list-style: none;
    text-align: left;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0;
}

.welcome-text li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    color: var(--szese-primary);
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.logo {
    height: 80px;
    width: auto;
    background: var(--white);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header > p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.main-content {
    padding: 2rem;
}

.step {
    display: none;
}

.step.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.step h2 {
    color: var(--szese-primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 3px solid var(--szese-secondary);
    padding-bottom: 0.5rem;
}

.step form {
    text-align: left;
}

.step form .btn {
    display: block;
    margin: 2rem auto 0;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--szese-primary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--szese-secondary);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1);
}

.datetime-selector {
    margin-bottom: 2rem;
}

.calendar-container {
    margin-bottom: 2rem;
}

.calendar-container h3,
.time-slots-container h3 {
    color: var(--szese-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.calendar {
    background: var(--white);
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
}

.calendar-header h4 {
    color: var(--szese-primary);
    font-size: 1.1rem;
    margin: 0;
}

.calendar-nav-btn {
    background: var(--szese-secondary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav-btn:hover {
    background: var(--szese-primary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    color: var(--gray);
    padding: 0.5rem;
    font-size: 0.8rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.calendar-day.available {
    background: var(--light-gray);
    color: var(--szese-primary);
}

.calendar-day.available:hover {
    background: var(--szese-secondary);
    color: var(--white);
    transform: scale(1.1);
}

.calendar-day.selected {
    background: var(--szese-primary);
    color: var(--white);
    font-weight: 600;
}

.calendar-day.unavailable {
    background: #f8d7da;
    color: #721c24;
    cursor: not-allowed;
    text-decoration: line-through;
}

.calendar-day.other-month {
    color: #ccc;
    cursor: not-allowed;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.time-slot {
    padding: 0.75rem 0.5rem;
    background: var(--light-gray);
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    color: var(--szese-primary);
}

.time-slot:hover {
    background: var(--szese-secondary);
    color: var(--white);
    border-color: var(--szese-secondary);
    transform: translateY(-2px);
}

.time-slot.selected {
    background: var(--szese-primary);
    color: var(--white);
    border-color: var(--szese-primary);
}

.time-slot.unavailable {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
    cursor: not-allowed;
    text-decoration: line-through;
}

.time-slot.unavailable:hover {
    transform: none;
}

.date-selector,
.time-selector {
    display: flex;
    flex-direction: column;
}

.date-selector label,
.time-selector label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--szese-primary);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--szese-primary);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(43, 62, 80, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: #1a2a3a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 62, 80, 0.4);
}

.btn-primary:disabled {
    background: var(--gray);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    color: var(--szese-primary);
    border: 2px solid var(--szese-primary);
}

.btn-secondary:hover {
    background: var(--szese-primary);
    color: var(--white);
}

.step-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
}

.summary {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.summary h3 {
    color: var(--szese-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.summary-item {
    display: flex;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item strong {
    min-width: 120px;
    color: var(--szese-primary);
}

.success-message {
    text-align: center;
    padding: 3rem 2rem;
}

.success-message h2 {
    color: var(--success);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.success-message p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--szese-primary);
}

.success-message a {
    color: var(--szese-secondary);
    text-decoration: none;
    font-weight: 600;
}

.success-message a:hover {
    text-decoration: underline;
}

.footer {
    background: var(--szese-primary);
    color: var(--white);
    text-align: center;
    padding: 1.5rem 1rem;
    margin-top: auto;
}

/* Reszponzív design */
@media (max-width: 768px) {
    .container {
        margin: 0;
        min-height: 100vh;
    }
    
    .header {
        padding: 0;
        min-height: auto;
    }
    
    .header-title-section {
        padding: 1rem;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .header-content {
        background: var(--light-gray);
        padding: 1.5rem;
    }
    
    .header-content .welcome-text {
        max-width: 100%;
    }
    
    .welcome-text ul {
        padding: 1rem;
    }
    
    .welcome-text li {
        font-size: 1rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .calendar {
        padding: 0.5rem;
    }
    
    .calendar-day {
        font-size: 0.8rem;
    }
    
    .time-slots {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 0.3rem;
    }
    
    .time-slot {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
    
    .step-buttons {
        flex-direction: column;
    }
    
    .step-buttons .btn {
        width: 100%;
    }
}

/* Animációk */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* Hibaüzenetek */
.error {
    color: var(--danger);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.form-group.has-error input,
.form-group.has-error select {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Loading állapot */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading .btn {
    position: relative;
}

.loading .btn::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid var(--white);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
