/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #b3cad7 0%, #667eea 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Main Container */
.signup-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    padding: 40px;
    position: relative;
}

/* Header */
.signup-header {
    text-align: center;
    margin-bottom: 40px;
}

.signup-header .logo {
    height: 60px;
    margin-bottom: 20px;
}

.signup-header h1 {
    color: #333;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.signup-header p {
    color: #666;
    font-size: 1.1rem;
    font-weight: 400;
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.progress-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.9rem;
    color: #999;
    font-weight: 500;
    transition: color 0.3s ease;
}

.step.active .step-number {
    background: #667eea;
    color: white;
}

.step.active .step-label {
    color: #667eea;
}

.step.completed .step-number {
    background: #28a745;
    color: white;
}

.step.completed .step-label {
    color: #28a745;
}

/* Form Steps */
.signup-form {
    position: relative;
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.form-step.active {
    display: block;
}

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

.form-step h2 {
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.step-description {
    color: #666;
    font-size: 1rem;
    margin-bottom: 30px;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

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

.form-row .form-group {
    flex: 1;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background-color: #fff;
    transition: all 0.3s ease;
    outline: none;
}

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

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

.form-help {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #666;
}

/* Pricing Explanation */
.pricing-explanation {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0;
    border-left: 4px solid #667eea;
}

.pricing-explanation h4 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.pricing-explanation p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 8px;
}

.pricing-explanation p:last-child {
    margin-bottom: 0;
}

/* Feature Explanation */
.feature-explanation {
    background: #f0f8ff;
    border-radius: 10px;
    padding: 20px;
    margin: 0 0 25px 0;
    border-left: 4px solid #28a745;
}

.feature-explanation h4 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-explanation p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Terms Group */
.terms-group {
    margin-top: 30px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-container a {
    color: #667eea;
    text-decoration: none;
}

.checkbox-container a:hover {
    text-decoration: underline;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    gap: 15px;
}

.btn {
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    min-width: 120px;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.btn:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Footer */
.signup-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.signup-footer p {
    color: #666;
    font-size: 0.95rem;
}

.signup-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.signup-footer a:hover {
    text-decoration: underline;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-content h3 {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.modal-content p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 25px;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

/* Spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Error States */
.form-input.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .signup-container {
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .signup-header h1 {
        font-size: 2rem;
    }
    
    .signup-header .logo {
        height: 50px;
    }
    
    .progress-indicator {
        margin-bottom: 30px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-step h2 {
        font-size: 1.5rem;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        padding: 15px;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 30px 20px;
        width: 95%;
    }
    
    .pricing-explanation {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .signup-header h1 {
        font-size: 1.8rem;
    }
    
    .form-step h2 {
        font-size: 1.3rem;
    }
    
    .step-label {
        display: none;
    }
    
    .progress-indicator {
        justify-content: center;
        gap: 30px;
    }
}

/* Form Sections */
.form-section {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.form-section h3 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.section-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.add-button {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.add-button:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* Vehicle Class and Service Offering Blocks */
.vehicle-class-block,
.service-offering-block {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}

.vehicle-class-block:last-child,
.service-offering-block:last-child {
    margin-bottom: 0;
}

.delete-button-container {
    position: absolute;
    top: 15px;
    right: 15px;
}

.delete-vehicle-class,
.delete-service-offering {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.delete-vehicle-class:hover,
.delete-service-offering:hover {
    background: #c82333;
}

/* Day Buttons for Service Offerings */
.day-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.day-button {
    background: #e9ecef;
    color: #495057;
    border: 1px solid #ced4da;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.day-button:hover {
    background: #dee2e6;
}

.day-button.active {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

/* Textarea styling */
.input-like-textarea {
    min-height: 80px;
    resize: vertical;
    font-family: 'Poppins', sans-serif;
}

/* Logo Upload Styles */
.logo-upload-box {
    border: 2px dashed #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.logo-upload-box:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.logo-upload-box.dragging {
    border-color: #667eea;
    background: #f0f4ff;
    transform: scale(1.02);
}

.logo-upload-box label {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: block;
    padding: 10px;
}

.logo-upload-box:hover label {
    color: #667eea;
}

/* Logo Upload Progress Bar */
.upload-progress {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.progress-bar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-text {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* Upload states */
.upload-progress.success .progress-fill {
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
}

.upload-progress.success .progress-text {
    color: #28a745;
}

.upload-progress.error .progress-fill {
    background: linear-gradient(90deg, #dc3545 0%, #e74c3c 100%);
}

.upload-progress.error .progress-text {
    color: #dc3545;
}

/* Animation for step transitions */
.form-step.slide-out-left {
    animation: slideOutLeft 0.3s ease-in-out;
}

.form-step.slide-in-right {
    animation: slideInRight 0.3s ease-in-out;
}

.form-step.slide-out-right {
    animation: slideOutRight 0.3s ease-in-out;
}

.form-step.slide-in-left {
    animation: slideInLeft 0.3s ease-in-out;
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Rate per minute container styling */
.rate-per-minute-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rate-per-minute-input {
    width: 50% !important; /* Make input half width */
}

.hourly-calculation {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-weight: 600;
    color: #28a745;
    font-size: 1rem;
}

.hourly-calculation span {
    font-size: 1.1rem;
}

/* Default Vehicle Class Styles */
.default-vehicle-class {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}

.default-vehicle-display {
    text-align: center;
}

.default-vehicle-info h4 {
    color: #28a745;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.default-vehicle-info h4::before {
    content: "🚗";
    font-size: 1.2rem;
}

.vehicle-description {
    color: #495057;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 8px;
    font-weight: 500;
}

.vehicle-surcharge {
    color: #28a745;
    font-size: 0.95rem;
    font-weight: 600;
    background: rgba(40, 167, 69, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
}

.default-vehicle-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.default-vehicle-actions .btn {
    min-width: auto;
    padding: 12px 20px;
    font-size: 0.9rem;
}

/* Hide edit button when default vehicle is made editable */
.default-vehicle-actions .btn[style*="display: none"] {
    display: none !important;
}

/* Default Service Class Styles */
.default-service-class {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}

.default-service-display {
    text-align: center;
}

.default-service-info h4 {
    color: #667eea;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.default-service-info h4::before {
    content: "⚡";
    font-size: 1.2rem;
}

.service-description {
    color: #495057;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 8px;
    font-weight: 500;
}

.service-details {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(102, 126, 234, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
}

.default-service-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.default-service-actions .btn {
    min-width: auto;
    padding: 12px 20px;
    font-size: 0.9rem;
}

/* Hide edit button when default services are made editable */
.default-service-actions .btn[style*="display: none"] {
    display: none !important;
}

/* Default Pricing Class Styles */
.default-pricing-class {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border: 2px solid #ff9800;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}

.default-pricing-info h4 {
    color: #ff9800;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.default-pricing-info h4::before {
    content: "💰";
    font-size: 1.2rem;
}

.pricing-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.pricing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255, 152, 0, 0.1);
    border-radius: 8px;
    border-left: 3px solid #ff9800;
}

.pricing-label {
    font-weight: 600;
    color: #e65100;
    font-size: 0.9rem;
}

.pricing-value {
    font-weight: 600;
    color: #e65100;
    font-size: 0.95rem;
}

.default-pricing-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.default-pricing-actions .btn {
    min-width: auto;
    padding: 12px 20px;
    font-size: 0.9rem;
}

/* Hide edit button when default pricing is made editable */
.default-pricing-actions .btn[style*="display: none"] {
    display: none !important;
}

/* Responsive adjustments for pricing summary */
@media (max-width: 768px) {
    .pricing-summary {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .default-pricing-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .default-pricing-actions .btn {
        width: 100%;
    }
}

/* Responsive adjustments for rate per minute */
@media (max-width: 768px) {
    .rate-per-minute-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .rate-per-minute-input {
        width: 100% !important;
    }
    
    .hourly-calculation {
        justify-content: center;
        text-align: center;
    }
    
    .default-vehicle-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .default-vehicle-actions .btn {
        width: 100%;
    }
}
