/* assets/css/rent.css */

/* Application Hero */
.app-hero {
    padding: 10rem 4rem 4rem;
    background: linear-gradient(135deg, #0A0F1E 0%, #1A1F2E 100%);
    text-align: center;
}

.app-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.app-title {
    font-size: 4rem;
    line-height: 1.2;
    margin: 1rem 0 1.5rem;
}

.app-title span {
    color: #D4AF37;
    position: relative;
    display: inline-block;
}

.app-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: rgba(212, 175, 55, 0.2);
    z-index: -1;
}

.app-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Application Steps */
.app-steps {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #D4AF37;
    color: #0A0F1E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.step-label {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 500;
}

/* Application Container */
.app-container {
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 4rem;
}

.rental-form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 30px;
    padding: 3rem;
}

/* Form Sections */
.form-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h2 {
    color: #D4AF37;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.form-section h3 {
    color: #fff;
    margin: 1.5rem 0 1rem;
    font-size: 1.2rem;
}

.section-note {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-style: italic;
}

/* Form Groups */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-group label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Form Groups - Updated select to match input/textarea exactly */
.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Additional select-specific styling (keeps the same background as inputs) */
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 2.5rem;
    /* Keep the same background as inputs */
    background-color: rgba(255, 255, 255, 0.05);
}

/* Style for select options (dropdown items) */
.form-group select option {
    background: #0A0F1E;
    color: #fff;
}

/* Style for selected/hovered options */
.form-group select option:hover,
.form-group select option:focus,
.form-group select option:active,
.form-group select option:checked {
    background: #D4AF37;
    color: #0A0F1E;
}

/* Focus state - matches inputs exactly */
.form-group select:focus {
    outline: none;
    border-color: #D4AF37;
    background: rgba(255, 255, 255, 0.08);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #D4AF37;
    background: rgba(255, 255, 255, 0.08);
}

.form-group small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Radio Groups */
.radio-group {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
}

.radio-group input[type="radio"] {
    width: auto;
    margin: 0;
}

/* Consent Box */
.consent-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.consent-box .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.consent-box .checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
}

/* Payment Section */
.payment-section {
    background: rgba(212, 175, 55, 0.05);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
}

.stripe-element {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

/* Form Actions */
.form-actions {
    margin-top: 3rem;
    text-align: center;
}

.form-note {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.form-note a {
    color: #D4AF37;
    text-decoration: none;
}

.form-note a:hover {
    text-decoration: underline;
}

/* Reference Groups */
.reference-group {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.reference-group h3 {
    color: #D4AF37;
    margin-top: 0;
}

/* Error Messages */
.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 4rem 2rem;
}

.success-message h2 {
    color: #D4AF37;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.success-message p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .app-hero {
        padding: 6rem 1rem 2rem;
    }
    
    .app-title {
        font-size: 2.5rem;
    }
    
    .app-steps {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .step {
        flex-direction: row;
        width: 100%;
        justify-content: center;
    }
    
    .app-container {
        padding: 0 1rem;
    }
    
    .rental-form {
        padding: 2rem 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .radio-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .consent-box {
        padding: 1rem;
    }
}