/* styles/hire.css */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

/* Booking Container */
.booking-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 100;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Blur Overlay - Fixed Version */
.blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.blur-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Progress Indicator */
.booking-progress {
    padding: 40px 40px 20px;
    background: white;
    position: relative;
    z-index: 100;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 20px;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #C5A059;
    color: white;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.step-label {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.step.active .step-label {
    color: #C5A059;
    font-weight: 600;
}

.progress-bar {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #C5A059;
    width: 0%;
    transition: width 0.5s ease;
}

/* Booking Steps */
.booking-step {
    display: none;
    padding: 0 40px 40px;
    position: relative;
    z-index: 100;
}

.booking-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    margin-bottom: 40px;
}

.step-back {
    margin-bottom: 20px;
}

.back-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.step-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #0A192F;
    margin-bottom: 10px;
}

.step-subtitle {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* Service Cards */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-card {
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    background: white;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card.featured {
    border-color: #C5A059;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(197, 160, 89, 0.15);
}

.service-card.selected {
    border-color: #C5A059 !important;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2), 0 20px 40px rgba(197, 160, 89, 0.3) !important;
    transform: translateY(-5px) scale(1.02);
}

.card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #C5A059;
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.card-icon {
    font-size: 40px;
    color: #666;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #0A192F;
    margin-bottom: 15px;
}

.card-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.card-features {
    margin-bottom: 25px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
}

.feature i {
    color: #4CAF50;
}

.card-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #C5A059;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-select {
    text-align: center;
}

.select-btn {
    background: #C5A059;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.select-btn:hover {
    background: #B08C46;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
}

/* Step Footer */
.step-footer {
    margin-top: 40px;
    text-align: center;
}

.contact-alternative {
    padding: 30px;
    background: #f9f9f9;
    border-radius: 12px;
}

.contact-alternative p {
    color: #666;
    margin-bottom: 15px;
    font-size: 16px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #C5A059;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #B08C46;
    transform: translateY(-2px);
}

/* Forms */
.booking-form {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 100;
}

.form-section {
    margin-bottom: 40px;
}

.form-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #0A192F;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group label i {
    color: #C5A059;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #C5A059;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-hint {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
}

/* File Upload */
.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.upload-label i {
    font-size: 48px;
    color: #C5A059;
    margin-bottom: 15px;
}

.upload-label span {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.upload-label small {
    color: #666;
    font-size: 13px;
}

.upload-label:hover {
    border-color: #C5A059;
    background: rgba(197, 160, 89, 0.05);
}

.upload-label.has-files {
    border-color: #C5A059;
    background: rgba(197, 160, 89, 0.1);
}

/* Tags Input */
.tags-input {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    min-height: 54px;
    background: white;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.tag {
    display: inline-flex;
    align-items: center;
    background: rgba(197, 160, 89, 0.1);
    color: #B08C46;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    gap: 8px;
    transition: all 0.2s ease;
}

.tag:hover {
    background: rgba(197, 160, 89, 0.2);
    transform: translateY(-1px);
}

.tag-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.tag-remove:hover {
    color: #ff6b6b;
}

.tags-input input {
    border: none;
    outline: none;
    padding: 8px;
    width: 100%;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
}

/* Checkbox and Radio Groups */
.checkbox-group,
.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-item:hover,
.radio-item:hover {
    border-color: #C5A059;
    background: rgba(197, 160, 89, 0.05);
}

.checkbox-item input,
.radio-item input {
    width: auto;
    margin: 0;
}

.checkbox-item label,
.radio-item label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 0;
}

.checkbox-label input {
    width: auto;
}

/* Dynamic Forms */
.dynamic-form-container {
    margin-bottom: 40px;
}

.service-form {
    display: none;
}

.service-form.active {
    display: block;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Booking Summary */
.booking-summary {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    border: 2px solid #e0e0e0;
}

.booking-summary h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #0A192F;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 600;
    color: #333;
    min-width: 150px;
}

.summary-value {
    color: #666;
    text-align: right;
    flex: 1;
}

.summary-service {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #C5A059;
    justify-content: flex-end;
}

.summary-service i {
    font-size: 20px;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.btn {
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: #C5A059;
    color: white;
}

.btn-primary:hover {
    background: #B08C46;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
}

.btn-primary:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-outline {
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
}

.btn-outline:hover {
    border-color: #C5A059;
    color: #C5A059;
    background: rgba(197, 160, 89, 0.05);
}

/* Success Modal */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.success-modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 50px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: modalIn 0.5s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-icon {
    font-size: 80px;
    color: #4CAF50;
    margin-bottom: 30px;
}

.modal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #0A192F;
    margin-bottom: 15px;
}

.modal-message {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 16px;
}

.modal-details {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: left;
}

.modal-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Validation Error */
.validation-error {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 8px;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .booking-container {
        border-radius: 10px;
    }
    
    .booking-progress,
    .booking-step {
        padding: 20px;
    }
    
    .progress-steps {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }
    
    .progress-steps::before {
        display: none;
    }
    
    .step {
        min-width: 80px;
    }
    
    .service-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .checkbox-group,
    .radio-group {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .step-title {
        font-size: 24px;
    }
    
    .step-subtitle {
        font-size: 14px;
    }
    
    .card-title {
        font-size: 20px;
    }
    
    .form-section-title {
        font-size: 18px;
    }
}

/* Print Styles */
@media print {
    .booking-progress,
    .form-actions,
    .back-btn,
    .select-btn,
    .success-modal,
    .step-footer {
        display: none !important;
    }
    
    .booking-step {
        display: block !important;
        padding: 0;
        margin: 0;
    }
    
    .booking-container {
        box-shadow: none;
        margin: 0;
        border-radius: 0;
    }
}