/* Parking Reservation System Styles */

.parking-reservation-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Sekcja informacyjna o minimalnym czasie 24h */
.minimum-time-notice {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Responsywność dla urządzeń mobilnych */
@media (max-width: 768px) {
    .minimum-time-notice {
        padding: 20px 15px !important;
    }
    
    .minimum-time-notice img {
        max-width: 180px !important;
    }
    
    .minimum-time-notice p {
        font-size: 14px !important;
        margin-top: 15px !important;
    }
}

@media (max-width: 480px) {
    .minimum-time-notice img {
        max-width: 150px !important;
    }
    
    .minimum-time-notice p {
        font-size: 13px !important;
        padding: 0 10px;
    }
}

.parking-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
}

/* Niebieski element dekoracyjny - niekliikalny */
.reservation-btn-display {
    background: #00bfff;
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
    display: inline-block;
    cursor: default;
}

.parking-address {
    font-size: 18px;
    font-weight: 500;
}

.parking-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.parking-form h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 24px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.required-note {
    color: #666;
    font-size: 14px;
    margin-bottom: 25px;
    font-style: italic;
}

.form-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
}

.form-section h3 {
    color: #495057;
    margin-bottom: 20px;
    font-size: 18px;
    border-left: 4px solid #667eea;
    padding-left: 15px;
}

.form-section h4 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 16px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #495057;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

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

.form-group input:invalid {
    border-color: #dc3545;
}

.form-tooltip {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 5px;
    padding: 10px;
    margin-top: 8px;
    font-size: 12px;
    color: #1976d2;
    position: relative;
}

.form-tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #2196f3;
}

.price-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.price-box {
    background: #007bff !important;
    color: white !important;
    padding: 20px 30px;
    border-radius: 12px;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    min-width: 200px;
    max-width: 350px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    border: 3px solid #0056b3;
}

/* Wyśrodkowanie sekcji ceny */
.form-section:has(.price-display) {
    text-align: center;
    margin-bottom: 30px;
}

.form-section:has(.price-display) .form-row {
    justify-content: center;
}

.form-section:has(.price-display) .form-group {
    flex: none;
    width: auto;
}

/* Sekcja RODO */
.rodo-section {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
}

.rodo-section h4 {
    color: #007bff;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: bold;
}

.rodo-text {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 15px;
}

.rodo-link {
    color: #007bff !important;
    text-decoration: underline !important;
    font-weight: bold;
}

.rodo-link:hover {
    color: #0056b3 !important;
    text-decoration: underline !important;
}

.rodo-details {
    background: white;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #007bff;
    margin-top: 10px;
}

.rodo-details small {
    color: #666;
    line-height: 1.4;
}

/* Checkboxy RODO */
.rodo-checkboxes {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.rodo-checkboxes .checkbox-group {
    margin-bottom: 15px;
}

.checkbox-label {
    display: flex !important;
    align-items: flex-start !important;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    gap: 10px;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.checkbox-label .checkmark {
    display: none;
}

.checkbox-label input[type="checkbox"]:checked {
    accent-color: #007bff;
}

.checkbox-label .rodo-link {
    color: #007bff !important;
    text-decoration: underline !important;
    font-weight: bold;
}

.checkbox-label .rodo-link:hover {
    color: #0056b3 !important;
}

.address-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.invoice-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.checkbox-group {
    margin-bottom: 15px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    transform: scale(1.2);
}

.invoice-options {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.submit-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    min-width: 200px;
}

.submit-btn:hover {
    background: #5a6fd8;
}

.submit-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.form-messages {
    margin-top: 20px;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #f5c6cb;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #c3e6cb;
}

/* Summary Page Styles */
.parking-summary-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.summary-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
}

.summary-header h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
}

.reservation-code {
    font-size: 16px;
    opacity: 0.9;
}

.summary-content {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.summary-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.summary-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.summary-details {
    display: grid;
    gap: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.detail-row .label {
    font-weight: 500;
    color: #666;
    min-width: 150px;
}

.detail-row .value {
    color: #333;
    text-align: right;
    flex: 1;
}

.status-pending {
    color: #ffc107;
    font-weight: bold;
}

.status-paid {
    color: #28a745;
    font-weight: bold;
}

.status-confirmed {
    color: #17a2b8;
    font-weight: bold;
}

.status-cancelled {
    color: #dc3545;
    font-weight: bold;
}

.payment-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.payment-details {
    text-align: center;
}

.price-summary {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.price-row.total {
    font-size: 18px;
    font-weight: bold;
    color: #28a745;
    border-top: 2px solid #28a745;
    margin-top: 10px;
    padding-top: 15px;
}

.payment-actions {
    text-align: center;
}

.payment-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.payment-btn:hover {
    background: #0056b3;
}

.p24-logo {
    height: 20px;
    width: auto;
}

.payment-note {
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

.payment-success {
    text-align: center;
    padding: 30px;
    background: #d4edda;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
}

.success-icon {
    font-size: 48px;
    color: #28a745;
    margin-bottom: 15px;
}

.payment-success h3 {
    color: #155724;
    margin-bottom: 10px;
}

.payment-success p {
    color: #155724;
    margin-bottom: 20px;
}

.download-btn {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.download-btn:hover {
    background: #138496;
}

.summary-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.contact-info,
.terms-info {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-info h3,
.terms-info h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.terms-info ul {
    list-style-type: disc;
    padding-left: 20px;
}

.terms-info li {
    margin-bottom: 8px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .parking-reservation-container,
    .parking-summary-container {
        margin: 10px;
        padding: 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group {
        min-width: auto;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .detail-row .label {
        min-width: auto;
    }
    
    .detail-row .value {
        text-align: left;
    }
    
    .summary-footer {
        grid-template-columns: 1fr;
    }
    
    .price-row {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .parking-form {
        padding: 20px;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .summary-section {
        padding: 20px;
    }
    
    .submit-btn,
    .payment-btn {
        width: 100%;
        min-width: auto;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .parking-reservation-container,
    .parking-summary-container {
        box-shadow: none;
        background: white;
    }
    
    .form-actions,
    .payment-actions,
    .summary-footer {
        display: none;
    }
}
