/**
 * Towing Services - Frontend Styles
 */

/* Common styles */
.towing-services-gps-location,
.towing-services-cost-calculator {
    max-width: 600px;
    margin: 0 auto 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    position: relative;
}

/* Steps container */
.towing-services-steps {
    position: relative;
    z-index: 1;
}

/* Individual step */
.towing-services-step {
    display: none;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.towing-services-step.active {
    display: block;
}

.step-content {
    text-align: center;
}

/* Step headers */
.towing-services-step h4 {
    margin: 10px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.step-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 15px;
}

/* Step icons */
.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #f5f5f5;
    border-radius: 50%;
    margin-bottom: 10px;
}

.step-icon .dashicons {
    width: 30px;
    height: 30px;
    font-size: 30px;
    color: #0073aa;
}

.success-icon .dashicons {
    color: #46b450;
}

.error-icon .dashicons {
    color: #dc3232;
}

/* Buttons */
.towing-services-gps-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 10px 0;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.towing-services-gps-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    opacity: 0.95;
}

.towing-button-small {
    padding: 8px 16px;
    font-size: 14px;
}

.towing-button-medium {
    padding: 12px 24px;
    font-size: 16px;
}

.towing-button-large {
    padding: 16px 32px;
    font-size: 18px;
}

.button-icon {
    margin-right: 8px;
    font-size: 20px;
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}

.towing-services-continue-button,
.towing-services-reset-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 0 5px;
}

.towing-services-back-button {
    padding: 10px 20px;
    background: #f1f1f1;
    color: #555;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 5px;
}

.towing-services-back-button:hover {
    background: #e5e5e5;
}

.towing-services-buttons {
    margin-top: 20px;
}

/* Address field */
.towing-services-address-field {
    margin: 20px auto;
    max-width: 100%;
}

.towing-services-gps-address {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
}

/* Loading overlay */
.towing-services-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 8px;
    display: none;
}

.loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left: 4px solid #0073aa;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

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

/* Success/Error messages */
.towing-services-success,
.towing-services-error {
    display: none;
    padding: 15px;
    border-radius: 4px;
    margin-top: 10px;
    text-align: center;
}

.towing-services-success {
    background: #f7fff7;
}

.towing-services-error {
    background: #fff7f7;
}

/* Cost calculator specific styles */
.towing-services-cost-calculator {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 25px;
}

.towing-services-cost-calculator h3 {
    margin-top: 0;
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
}

.calculator-map {
    height: 300px;
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cost-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    background: #f9f9f9;
    text-align: center;
    display: none;
}

.cost-amount {
    font-size: 24px;
    font-weight: bold;
    color: #0073aa;
    margin: 10px 0;
}

/* Responsive styles */
@media (max-width: 600px) {
    .towing-services-gps-location,
    .towing-services-cost-calculator {
        max-width: 100%;
    }
    
    .towing-services-step {
        padding: 15px;
    }
    
    .calculator-map {
        height: 200px;
    }
}
