/* Spencer Brook Strings Rental Form Styles */
/* Updated to match shortcode HTML structure */

* {
    box-sizing: border-box;
}

.sbs-rental-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.sbs-rental-header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.sbs-rental-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.sbs-rental-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.sbs-progress-bar {
    background: #ecf0f1;
    height: 4px;
    position: relative;
}

.sbs-progress-fill {
    background: linear-gradient(90deg, #3498db, #2ecc71);
    height: 100%;
    width: 0%;
    transition: width 0.5s ease;
}

.sbs-form-container {
    padding: 40px;
}

.sbs-step {
    display: none;
}

.sbs-step.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.sbs-step-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #3498db;
}

.sbs-form-group {
    margin-bottom: 25px;
}

.sbs-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.sbs-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.sbs-form-control, 
input[type="text"], 
input[type="email"], 
input[type="tel"], 
select, 
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e6ed;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    font-family: inherit;
}

.sbs-form-control:focus, 
input:focus, 
select:focus, 
textarea:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.sbs-radio-group, .sbs-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.sbs-radio-option, .sbs-checkbox-option {
    position: relative;
    background: #f8f9fa;
    border: 2px solid #e0e6ed;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.sbs-radio-option:hover, .sbs-checkbox-option:hover {
    border-color: #3498db;
    background: #ebf3fd;
}

.sbs-radio-option.selected, .sbs-checkbox-option.selected {
    border-color: #3498db;
    background: linear-gradient(135deg, #ebf3fd 0%, #e3f2fd 100%);
}

.sbs-radio-option input, .sbs-checkbox-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.sbs-option-content {
    text-align: center;
}

.sbs-option-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.sbs-option-subtitle {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.sbs-price-tag {
    background: #27ae60;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 8px;
    display: inline-block;
}

.sbs-info-box {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.sbs-info-box h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    margin-top: 0;
}

.sbs-info-box p {
    margin: 0;
}

.sbs-pricing-summary {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin: 25px 0;
}

.sbs-pricing-summary h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.sbs-pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #4a5a6a;
}

.sbs-pricing-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    font-weight: 700;
    font-size: 1.2rem;
}

.sbs-conditional-field {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.sbs-conditional-field.show {
    opacity: 1;
    max-height: 1000px;
}

.sbs-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #e0e6ed;
}

.sbs-btn {
    padding: 14px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.sbs-btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.sbs-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
    color: white;
}

.sbs-btn-secondary {
    background: #95a5a6;
    color: white;
}

.sbs-btn-secondary:hover {
    background: #7f8c8d;
    color: white;
}

.sbs-error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
}

.sbs-success {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
}

.sbs-message {
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.sbs-message.sbs-error {
    background: #fdebea;
    color: #e74c3c;
    border: 1px solid #f5b7b1;
}

.sbs-message.sbs-success {
    background: #d5f4e6;
    color: #27ae60;
    border: 1px solid #a9dfbf;
}

.sbs-field-help {
    color: #7f8c8d;
    font-size: 0.85rem;
    display: block;
    margin-top: 5px;
}

.sbs-code-block {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #e0e6ed;
}

.sbs-code-block code {
    background: none;
    padding: 0;
    font-family: 'Courier New', monospace;
    color: #2c3e50;
    flex: 1;
}

.sbs-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    text-transform: none;
    letter-spacing: normal;
}

/* Form validation styles */
.sbs-form-control.error,
input.error,
select.error {
    border-color: #e74c3c;
    background: #fdebea;
}

.sbs-form-control.error:focus,
input.error:focus,
select.error:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Loading states */
.sbs-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Accessibility improvements */
.sbs-radio-option:focus-within,
.sbs-checkbox-option:focus-within {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sbs-rental-form-container {
        margin: 10px;
        border-radius: 15px;
    }
    
    .sbs-form-container {
        padding: 20px;
    }
    
    .sbs-form-row {
        grid-template-columns: 1fr;
    }
    
    .sbs-radio-group, .sbs-checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .sbs-rental-header h1 {
        font-size: 2rem;
    }
    
    .sbs-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .sbs-btn {
        width: 100%;
    }
}

/* WordPress compatibility */
.sbs-rental-form-container * {
    box-sizing: border-box;
}

/* Override any theme styles that might interfere */
.sbs-rental-form-container input,
.sbs-rental-form-container select,
.sbs-rental-form-container textarea,
.sbs-rental-form-container button {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.sbs-rental-form-container h1,
.sbs-rental-form-container h2,
.sbs-rental-form-container h3 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.2;
}

/* Hide elements by default until JavaScript shows them */
.sbs-conditional-field:not(.show) {
    display: none;
}