/* Apartman Foglalás - Frontend CSS */

.af-booking-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.af-booking-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
}

.af-title {
    text-align: center;
    color: #2c3e50;
    font-size: 32px;
    margin-bottom: 40px;
    font-weight: 600;
}

/* Apartman választó */
.af-apartment-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.af-apartment-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.af-apartment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.af-apartment-card.active {
    border: 3px solid #2ecc71;
    transform: scale(1.05);
}

.af-apartment-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.af-apartment-card h3 {
    font-size: 24px;
    margin: 15px 0;
}

.af-capacity {
    font-size: 16px;
    opacity: 0.9;
    margin: 10px 0;
}

.af-price {
    font-size: 20px;
    font-weight: bold;
    margin: 15px 0;
}

.af-select-btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.af-select-btn:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

/* Naptár */
.af-calendar-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.af-calendar-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 22px;
}

.af-calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.af-current-month {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}

.af-prev-month,
.af-next-month {
    background: #667eea;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.af-prev-month:hover,
.af-next-month:hover {
    background: #764ba2;
    transform: scale(1.1);
}

#af-calendar {
    background: white;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
}

.af-calendar-table {
    width: 100%;
    border-collapse: collapse;
}

.af-calendar-table th {
    padding: 12px;
    text-align: center;
    color: #667eea;
    font-weight: 600;
    font-size: 14px;
}

.af-calendar-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 40px;
}

.af-calendar-table td:not(.af-empty):not(.af-occupied):hover {
    background: #e3f2fd;
    transform: scale(1.05);
}

.af-calendar-table td.af-empty {
    background: #f5f5f5;
    cursor: default;
}

.af-calendar-table td.af-occupied {
    background: #ffebee;
    color: #c62828;
    cursor: not-allowed;
    position: relative;
}

.af-calendar-table td.af-occupied::after {
    content: '✕';
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 10px;
}

.af-calendar-table td.af-selected {
    background: #2ecc71 !important;
    color: white;
    font-weight: bold;
}

.af-calendar-table td.af-in-range {
    background: #c8e6c9 !important;
}

.af-date-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.af-date-info {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.af-date-info strong {
    display: block;
    color: #667eea;
    margin-bottom: 5px;
    font-size: 12px;
    text-transform: uppercase;
}

/* Űrlap */
.af-form {
    margin-top: 30px;
}

.af-form-section {
    margin-bottom: 30px;
}

.af-form-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.af-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.af-form-group {
    margin-bottom: 20px;
}

.af-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.af-form-group input,
.af-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.af-form-group input:focus,
.af-form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Ár összesítő */
.af-price-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
}

.af-price-summary h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
}

.af-price-details {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
}

.af-price-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.af-price-row:last-child {
    border-bottom: none;
}

.af-price-row.af-total {
    font-size: 20px;
    font-weight: bold;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.af-price-row.af-deposit {
    font-size: 16px;
    opacity: 0.9;
}

/* Feltételek */
.af-terms {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.af-terms label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #856404;
    cursor: pointer;
}

.af-terms input[type="checkbox"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.af-terms-content {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ffeaa7;
}

.af-terms-content ul {
    margin: 0;
    padding-left: 20px;
}

.af-terms-content li {
    margin: 8px 0;
    color: #856404;
}

/* Gombok */
.af-form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.af-back-btn,
.af-submit-btn {
    padding: 15px 40px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.af-back-btn {
    background: #95a5a6;
    color: white;
}

.af-back-btn:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

.af-submit-btn {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

.af-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(46, 204, 113, 0.3);
}

.af-submit-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

/* Üzenetek */
.af-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: 500;
}

.af-message.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.af-message.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Siker üzenet */
.af-success-message {
    text-align: center;
    padding: 60px 40px;
}

.af-success-icon {
    width: 80px;
    height: 80px;
    background: #2ecc71;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 30px;
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.af-success-message h3 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 15px;
}

.af-success-message p {
    color: #7f8c8d;
    font-size: 16px;
    margin: 10px 0;
}

.af-booking-id {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 18px;
}

.af-new-booking-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.af-new-booking-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .af-booking-wrapper {
        padding: 20px;
    }
    
    .af-title {
        font-size: 24px;
    }
    
    .af-apartment-selector {
        grid-template-columns: 1fr;
    }
    
    .af-form-row {
        grid-template-columns: 1fr;
    }
    
    .af-form-actions {
        flex-direction: column;
    }
    
    .af-back-btn,
    .af-submit-btn {
        width: 100%;
    }
}
