/* Wedding Transportation Calculator Styles */
/* Golden Limousine International Branding */

/* CSS Reset and Base Styles */
* {
    box-sizing: border-box;
}

.wedding-calc-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #374151;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Loading Spinner */
.wedding-calc-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.wedding-calc-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #d4af37;
    border-radius: 50%;
    animation: wedding-calc-spin 1s linear infinite;
    margin-bottom: 20px;
}

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

/* Utility Classes */
.wedding-calc-hidden { display: none !important; }
.wedding-calc-block { display: block !important; }
.wedding-calc-flex { display: flex !important; }
.wedding-calc-grid { display: grid !important; }
.wedding-calc-inline-flex { display: inline-flex !important; }

.wedding-calc-items-center { align-items: center !important; }
.wedding-calc-justify-center { justify-content: center !important; }
.wedding-calc-justify-between { justify-content: space-between !important; }
.wedding-calc-flex-col { flex-direction: column !important; }
.wedding-calc-flex-wrap { flex-wrap: wrap !important; }

.wedding-calc-gap-2 { gap: 0.5rem !important; }
.wedding-calc-gap-4 { gap: 1rem !important; }
.wedding-calc-gap-6 { gap: 1.5rem !important; }

.wedding-calc-w-full { width: 100% !important; }
.wedding-calc-h-full { height: 100% !important; }

.wedding-calc-p-2 { padding: 0.5rem !important; }
.wedding-calc-p-4 { padding: 1rem !important; }
.wedding-calc-p-6 { padding: 1.5rem !important; }
.wedding-calc-px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.wedding-calc-py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.wedding-calc-py-3 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }

.wedding-calc-m-2 { margin: 0.5rem !important; }
.wedding-calc-m-4 { margin: 1rem !important; }
.wedding-calc-mb-4 { margin-bottom: 1rem !important; }
.wedding-calc-mb-6 { margin-bottom: 1.5rem !important; }
.wedding-calc-mt-4 { margin-top: 1rem !important; }
.wedding-calc-mt-6 { margin-top: 1.5rem !important; }

.wedding-calc-rounded { border-radius: 0.25rem !important; }
.wedding-calc-rounded-lg { border-radius: 0.5rem !important; }
.wedding-calc-rounded-xl { border-radius: 0.75rem !important; }

.wedding-calc-shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important; }
.wedding-calc-shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important; }

.wedding-calc-border { border: 1px solid #e5e7eb !important; }
.wedding-calc-border-2 { border: 2px solid #e5e7eb !important; }

/* Color Classes */
.wedding-calc-bg-white { background-color: #ffffff !important; }
.wedding-calc-bg-gray-50 { background-color: #f9fafb !important; }
.wedding-calc-bg-gray-100 { background-color: #f3f4f6 !important; }
.wedding-calc-bg-gold { background-color: #d4af37 !important; }
.wedding-calc-bg-blue { background-color: #1e40af !important; }
.wedding-calc-bg-green { background-color: #10b981 !important; }
.wedding-calc-bg-red { background-color: #ef4444 !important; }

.wedding-calc-text-white { color: #ffffff !important; }
.wedding-calc-text-gray-600 { color: #6b7280 !important; }
.wedding-calc-text-gray-700 { color: #374151 !important; }
.wedding-calc-text-gray-900 { color: #111827 !important; }
.wedding-calc-text-gold { color: #d4af37 !important; }
.wedding-calc-text-blue { color: #1e40af !important; }
.wedding-calc-text-green { color: #10b981 !important; }
.wedding-calc-text-red { color: #ef4444 !important; }

.wedding-calc-border-gold { border-color: #d4af37 !important; }
.wedding-calc-border-gray-300 { border-color: #d1d5db !important; }

/* Typography */
.wedding-calc-text-xs { font-size: 0.75rem !important; line-height: 1rem !important; }
.wedding-calc-text-sm { font-size: 0.875rem !important; line-height: 1.25rem !important; }
.wedding-calc-text-base { font-size: 1rem !important; line-height: 1.5rem !important; }
.wedding-calc-text-lg { font-size: 1.125rem !important; line-height: 1.75rem !important; }
.wedding-calc-text-xl { font-size: 1.25rem !important; line-height: 1.75rem !important; }
.wedding-calc-text-2xl { font-size: 1.5rem !important; line-height: 2rem !important; }
.wedding-calc-text-3xl { font-size: 1.875rem !important; line-height: 2.25rem !important; }

.wedding-calc-font-medium { font-weight: 500 !important; }
.wedding-calc-font-semibold { font-weight: 600 !important; }
.wedding-calc-font-bold { font-weight: 700 !important; }

.wedding-calc-text-center { text-align: center !important; }
.wedding-calc-text-left { text-align: left !important; }
.wedding-calc-text-right { text-align: right !important; }

/* Header Styles */
.wedding-calc-header {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.wedding-calc-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.wedding-calc-header p {
    font-size: 1.125rem;
    margin: 0;
    opacity: 0.9;
}

.wedding-calc-privacy-notice {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
    backdrop-filter: blur(10px);
}

.wedding-calc-privacy-notice p {
    font-size: 0.875rem;
    margin: 0;
    opacity: 0.95;
    line-height: 1.4;
}

/* Form Styles */
.wedding-calc-form {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.wedding-calc-form h2 {
    color: #1e40af;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #d4af37;
}

.wedding-calc-form-group {
    margin-bottom: 1.5rem;
}

.wedding-calc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.wedding-calc-label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.wedding-calc-input,
.wedding-calc-select,
.wedding-calc-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: white;
}

.wedding-calc-input:focus,
.wedding-calc-select:focus,
.wedding-calc-textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.wedding-calc-input.error,
.wedding-calc-select.error,
.wedding-calc-textarea.error {
    border-color: #ef4444;
}

.wedding-calc-error {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

/* Button Styles */
.wedding-calc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    gap: 0.5rem;
}

.wedding-calc-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wedding-calc-btn-primary {
    background-color: #d4af37;
    color: white;
}

.wedding-calc-btn-primary:hover:not(:disabled) {
    background-color: #b8941f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.wedding-calc-btn-secondary {
    background-color: #1e40af;
    color: white;
}

.wedding-calc-btn-secondary:hover:not(:disabled) {
    background-color: #1e3a8a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

.wedding-calc-btn-outline {
    background-color: transparent;
    color: #374151;
    border: 2px solid #d1d5db;
}

.wedding-calc-btn-outline:hover:not(:disabled) {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.wedding-calc-btn-danger {
    background-color: #ef4444;
    color: white;
}

.wedding-calc-btn-danger:hover:not(:disabled) {
    background-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.wedding-calc-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.wedding-calc-btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Card Styles */
.wedding-calc-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.wedding-calc-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.wedding-calc-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

/* Participant Management */
.wedding-calc-participant {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    border: 1px solid #e5e7eb;
}

.wedding-calc-participant-info {
    flex: 1;
}

.wedding-calc-participant-name {
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.25rem 0;
}

.wedding-calc-participant-role {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0 0 0.25rem 0;
}

.wedding-calc-participant-contact {
    color: #6b7280;
    font-size: 0.75rem;
    margin: 0;
}

.wedding-calc-participant-actions {
    display: flex;
    gap: 0.5rem;
}

/* Itinerary Styles */
.wedding-calc-itinerary-item {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.wedding-calc-itinerary-item.active {
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.wedding-calc-itinerary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.wedding-calc-itinerary-time {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e40af;
}

.wedding-calc-itinerary-location {
    font-weight: 600;
    color: #374151;
    margin: 0.5rem 0;
}

.wedding-calc-itinerary-address {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0 0 1rem 0;
}

.wedding-calc-participants-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.wedding-calc-participant-tag {
    background: #d4af37;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.wedding-calc-participant-checkbox {
    margin-right: 0.5rem;
}

/* PDF Generation */
.wedding-calc-pdf-section {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    margin-top: 2rem;
}

.wedding-calc-pdf-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.wedding-calc-pdf-section p {
    margin: 0 0 1.5rem 0;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wedding-calc-container {
        padding: 1rem;
    }
    
    .wedding-calc-header h1 {
        font-size: 2rem;
    }
    
    .wedding-calc-form-row {
        grid-template-columns: 1fr;
    }
    
    .wedding-calc-participant {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .wedding-calc-participant-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .wedding-calc-itinerary-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Print Styles for PDF */
@media print {
    .wedding-calc-container {
        max-width: none;
        padding: 0;
        margin: 0;
    }
    
    .wedding-calc-btn,
    .wedding-calc-participant-actions,
    .wedding-calc-pdf-section {
        display: none !important;
    }
    
    .wedding-calc-card,
    .wedding-calc-form,
    .wedding-calc-itinerary-item {
        box-shadow: none;
        border: 1px solid #000;
        break-inside: avoid;
    }
    
    .wedding-calc-header {
        background: #d4af37 !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
}

/* Accessibility */
.wedding-calc-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.wedding-calc-focus:focus {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* Animation Classes */
.wedding-calc-fade-in {
    animation: wedding-calc-fadeIn 0.3s ease-in;
}

@keyframes wedding-calc-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.wedding-calc-slide-in {
    animation: wedding-calc-slideIn 0.3s ease-out;
}

@keyframes wedding-calc-slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}
