/* Royal Storage Booking Form Styles */

.royal-storage-booking-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.booking-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.booking-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 28px;
}

.booking-header p {
    color: #7f8c8d;
    font-size: 16px;
}

/* Form Steps */
.form-step {
    display: none;
    padding: 20px 0;
    min-height: 400px;
}

.form-step.active {
    display: block;
}

.form-step h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 22px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

/* Unit Type Selection */
.unit-type-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.unit-type-option {
    position: relative;
}

.unit-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.unit-type-option label {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.unit-type-option label:hover {
    border-color: #3498db;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

.unit-type-option input[type="radio"]:checked + label {
    border-color: #3498db;
    background: #f8f9ff;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.unit-icon {
    font-size: 48px;
    margin-right: 20px;
    min-width: 60px;
    text-align: center;
}

.unit-info h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 18px;
}

.unit-info p {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
}

/* Date Selection */
.date-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Available Units */
.available-units {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.unit-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.unit-card:hover {
    border-color: #3498db;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

.unit-card.selected {
    border-color: #27ae60;
    background: #f0fff4;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.2);
}

.unit-card h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 16px;
}

.unit-card .unit-details {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.unit-card .unit-price {
    font-size: 18px;
    font-weight: bold;
    color: #27ae60;
}

.unit-card .unit-size {
    background: #3498db;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 8px;
}

/* Booking Summary */
.booking-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.summary-item:last-child {
    border-bottom: none;
    font-weight: bold;
    font-size: 18px;
    color: #2c3e50;
}

.summary-label {
    color: #7f8c8d;
}

.summary-value {
    color: #2c3e50;
    font-weight: 600;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.3);
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-style: italic;
}

/* Error Messages */
.error-message {
    background: #e74c3c;
    color: white;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

.success-message {
    background: #27ae60;
    color: white;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

/* Responsive Design */

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
    .royal-storage-booking-form {
        max-width: 90%;
        padding: 20px;
    }
    
    .booking-header h2 {
        font-size: 24px;
    }
    
    .form-step h3 {
        font-size: 20px;
    }
    
    .unit-type-selection {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 15px;
    }
    
    .date-selection {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

/* Tablets */
@media (max-width: 768px) {
    .royal-storage-booking-form {
        padding: 15px;
        margin: 10px;
        max-width: 95%;
    }
    
    .booking-header {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .booking-header h2 {
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .booking-header p {
        font-size: 14px;
    }
    
    .form-step {
        padding: 15px 0;
        min-height: 350px;
    }
    
    .form-step h3 {
        font-size: 18px;
        margin-bottom: 15px;
        padding-bottom: 8px;
    }
    
    .unit-type-selection {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .unit-type-option label {
        padding: 15px;
        flex-direction: column;
        text-align: center;
    }
    
    .unit-icon {
        font-size: 36px;
        margin-right: 0;
        margin-bottom: 10px;
        min-width: auto;
    }
    
    .unit-info h4 {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .unit-info p {
        font-size: 13px;
    }
    
    .date-selection {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px;
        font-size: 14px;
    }
    
    .available-units {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .unit-card {
        padding: 12px;
    }
    
    .unit-card h4 {
        font-size: 14px;
    }
    
    .unit-card .unit-details {
        font-size: 12px;
    }
    
    .unit-card .unit-price {
        font-size: 16px;
    }
    
    .booking-summary {
        padding: 15px;
    }
    
    .summary-item {
        font-size: 14px;
        padding: 6px 0;
    }
    
    .summary-item:last-child {
        font-size: 16px;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 10px;
        padding-top: 15px;
    }
    
    .btn {
        width: 100%;
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .step-progress .step {
        width: 35px;
        height: 35px;
        margin: 0 8px;
        font-size: 14px;
    }
    
    .step-progress .step::after {
        width: 16px;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .royal-storage-booking-form {
        padding: 10px;
        margin: 5px;
        max-width: 100%;
        border-radius: 4px;
    }
    
    .booking-header {
        padding: 15px 10px;
        margin-bottom: 15px;
        border-radius: 4px;
    }
    
    .booking-header h2 {
        font-size: 20px;
        margin-bottom: 6px;
    }
    
    .booking-header p {
        font-size: 13px;
    }
    
    .form-step {
        padding: 10px 0;
        min-height: 300px;
    }
    
    .form-step h3 {
        font-size: 16px;
        margin-bottom: 12px;
        padding-bottom: 6px;
    }
    
    .unit-type-selection {
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .unit-type-option label {
        padding: 12px;
        border-radius: 6px;
    }
    
    .unit-icon {
        font-size: 28px;
        margin-bottom: 8px;
    }
    
    .unit-info h4 {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .unit-info p {
        font-size: 12px;
    }
    
    .date-selection {
        gap: 12px;
    }
    
    .form-group {
        margin-bottom: 10px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group select {
        padding: 8px;
        font-size: 13px;
        border-radius: 4px;
    }
    
    .available-units {
        gap: 8px;
    }
    
    .unit-card {
        padding: 10px;
        border-radius: 6px;
    }
    
    .unit-card h4 {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .unit-card .unit-details {
        font-size: 11px;
        margin-bottom: 8px;
    }
    
    .unit-card .unit-price {
        font-size: 14px;
    }
    
    .unit-card .unit-size {
        font-size: 10px;
        padding: 3px 6px;
        margin-bottom: 6px;
    }
    
    .booking-summary {
        padding: 12px;
        border-radius: 6px;
    }
    
    .summary-item {
        font-size: 13px;
        padding: 5px 0;
        margin-bottom: 8px;
    }
    
    .summary-item:last-child {
        font-size: 15px;
        font-weight: bold;
    }
    
    .summary-label {
        font-size: 12px;
    }
    
    .summary-value {
        font-size: 13px;
    }
    
    .form-navigation {
        gap: 8px;
        padding-top: 12px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 4px;
    }
    
    .step-progress {
        margin-bottom: 20px;
    }
    
    .step-progress .step {
        width: 30px;
        height: 30px;
        margin: 0 6px;
        font-size: 12px;
    }
    
    .step-progress .step::after {
        width: 12px;
    }
}

/* Extra Small Mobile Phones */
@media (max-width: 320px) {
    .royal-storage-booking-form {
        padding: 8px;
        margin: 2px;
    }
    
    .booking-header {
        padding: 12px 8px;
    }
    
    .booking-header h2 {
        font-size: 18px;
    }
    
    .booking-header p {
        font-size: 12px;
    }
    
    .form-step h3 {
        font-size: 15px;
    }
    
    .unit-type-option label {
        padding: 10px;
    }
    
    .unit-icon {
        font-size: 24px;
    }
    
    .unit-info h4 {
        font-size: 13px;
    }
    
    .unit-info p {
        font-size: 11px;
    }
    
    .form-group input,
    .form-group select {
        padding: 6px;
        font-size: 12px;
    }
    
    .unit-card {
        padding: 8px;
    }
    
    .unit-card h4 {
        font-size: 12px;
    }
    
    .unit-card .unit-details {
        font-size: 10px;
    }
    
    .unit-card .unit-price {
        font-size: 13px;
    }
    
    .booking-summary {
        padding: 10px;
    }
    
    .summary-item {
        font-size: 12px;
    }
    
    .summary-item:last-child {
        font-size: 14px;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .step-progress .step {
        width: 25px;
        height: 25px;
        margin: 0 4px;
        font-size: 10px;
    }
    
    .step-progress .step::after {
        width: 8px;
    }
}

/* Step Progress Indicator */
.step-progress {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.step-progress .step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    font-weight: bold;
    position: relative;
}

.step-progress .step.active {
    background: #3498db;
    color: white;
}

.step-progress .step.completed {
    background: #27ae60;
    color: white;
}

.step-progress .step::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 20px;
    height: 2px;
    background: #e0e0e0;
    transform: translateY(-50%);
}

.step-progress .step:last-child::after {
    display: none;
}
