/* EOI Frontend Styles - assets/eoi-frontend.css */

.eoi-container {
    max-width: 900px;
    margin: 0 auto 40px;
    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;
}

.eoi-header {
    background: linear-gradient(135deg, #4682B4 0%, #5a8bc4 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.eoi-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 300;
}

.eoi-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.pricing-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.eoi-form {
    padding: 40px;
}

.form-section {
    margin-bottom: 35px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 30px;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid #4682B4;
    padding-left: 15px;
}

/* Applicant Type Section */
.applicant-type-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.applicant-type-selector {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: #4682B4;
    background: #f0f8ff;
}

.radio-option input[type="radio"] {
    margin-top: 3px;
    margin-right: 15px;
    transform: scale(1.2);
}

.radio-option input[type="radio"]:checked + .radio-label {
    color: #4682B4;
}

.radio-option input[type="radio"]:checked ~ .radio-label strong {
    color: #4682B4;
}

.radio-label {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.radio-label strong {
    font-size: 1.1rem;
    color: #2c3e50;
}

.radio-label span {
    font-size: 0.9rem;
    color: #6c757d;
}

.broker-details {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Inspection Section */
.inspection-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.inspection-request {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
}

.inspection-request input[type="checkbox"] {
    margin-right: 12px;
    transform: scale(1.3);
}

.sub-text {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 5px;
    margin-left: 28px;
}

.inspection-schedule {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    animation: slideDown 0.3s ease;
}

.inspection-info {
    background: #e8f4fd;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 0.95rem;
}

.inspection-inputs {
    display: grid;
    gap: 20px;
}

/* Important Notices */
.important-notice {
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.important-notice h3 {
    margin-bottom: 10px;
    color: #856404;
}

/* Rental Info */
.rental-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.duration-picker {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.duration-picker:hover {
    border-color: #4682B4;
    box-shadow: 0 5px 15px rgba(70,130,180,0.1);
}

.date-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* FIXED: Increased height for form inputs */
.date-input, 
.form-input, 
.form-select {
    width: 100%;
    padding: 14px 16px;  /* Increased from 12px 15px */
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.5;  /* Added for better text visibility */
    min-height: 48px;  /* Added minimum height */
    transition: all 0.3s ease;
    font-family: inherit;
}

/* Special handling for select elements */
.form-select {
    height: auto;
    min-height: 48px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.date-input:focus, 
.form-input:focus, 
.form-select:focus {
    outline: none;
    border-color: #4682B4;
    box-shadow: 0 0 0 3px rgba(70,130,180,0.1);
}

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

.pricing-display {
    background: #e8f4fd;
    border: 2px solid #4682B4;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin: 20px 0;
}

.pricing-title {
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 15px;
}

.pricing-amount {
    font-size: 2.5rem;
    color: #4682B4;
    font-weight: bold;
    margin: 10px 0;
}

.pricing-details {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.4;
}

.occupancy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

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

.form-label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.required {
    color: #dc3545;
}

.form-textarea {
    min-height: 120px;  /* Increased from 100px */
    resize: vertical;
    line-height: 1.5;
    padding: 14px 16px;  /* Increased padding */
}

.verification-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    border: 2px solid #dee2e6;
}

.verification-title {
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.verification-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.verification-list li {
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
    position: relative;
    padding-left: 30px;
    line-height: 1.5;
}

.verification-list li:before {
    content: '📋';
    position: absolute;
    left: 0;
}

.verification-list li:last-child {
    border-bottom: none;
    font-weight: 600;
    color: #dc3545;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #dee2e6;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    transform: scale(1.2);
    width: auto;
    min-width: 20px;
    min-height: 20px;
}

.submit-section {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.submit-btn {
    background: linear-gradient(135deg, #4682B4 0%, #5a8bc4 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(70,130,180,0.3);
    font-family: inherit;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(70,130,180,0.4);
}

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

.success-message {
    background: #d4edda;
    border: 2px solid #c3e6cb;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    color: #155724;
    text-align: center;
}

.success-message h3 {
    margin-bottom: 15px;
}

.error-message {
    background: #f8d7da;
    border: 2px solid #f5c6cb;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    color: #721c24;
    text-align: center;
}

.error-message h3 {
    margin-bottom: 15px;
}

.summary-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    border-left: 4px solid #4682B4;
}

.summary-title {
    font-size: 1.3rem;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 20px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.summary-item:last-child {
    border-bottom: none;
}

.eoi-success-message {
    background: #d4edda;
    border: 2px solid #c3e6cb;
    border-radius: 12px;
    padding: 30px;
    margin: 20px auto;
    color: #155724;
    text-align: center;
    max-width: 600px;
}

.eoi-success-message h3 {
    margin-bottom: 15px;
}

/* Loading spinner */
.eoi-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .rental-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .duration-inputs {
        grid-template-columns: 1fr;
    }

    .occupancy-grid {
        grid-template-columns: 1fr;
    }

    .eoi-header h1 {
        font-size: 2rem;
    }

    .eoi-form {
        padding: 20px;
    }

    .pricing-amount {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.2rem;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .checkbox-group {
        flex-direction: column;
        gap: 10px;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .applicant-type-selector {
        gap: 10px;
    }
    
    .radio-option {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .eoi-container {
        margin: 10px;
        border-radius: 10px;
    }

    .eoi-header {
        padding: 30px 20px;
    }

    .eoi-form {
        padding: 15px;
    }

    .form-section {
        margin-bottom: 25px;
        padding-bottom: 20px;
    }

    .pricing-display {
        padding: 20px;
    }

    .verification-section {
        padding: 20px;
    }
    
    /* Ensure inputs remain readable on mobile */
    .date-input,
    .form-input,
    .form-select {
        font-size: 16px;  /* Prevents zoom on iOS */
        min-height: 50px;
    }
}

/* Print styles */
@media print {
    .eoi-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .submit-btn,
    .eoi-header {
        display: none;
    }

    .form-section {
        border-bottom: 1px solid #ccc;
        break-inside: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .eoi-container {
        border: 2px solid #000;
    }

    .form-input,
    .form-select,
    .date-input {
        border: 2px solid #000;
    }

    .submit-btn {
        background: #000;
        color: #fff;
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .submit-btn,
    .duration-picker,
    .form-input,
    .form-select,
    .date-input,
    .radio-option,
    .broker-details,
    .inspection-schedule {
        transition: none;
        animation: none;
    }

    .eoi-loading {
        animation: none;
    }
}

/* Focus styles for accessibility */
.form-input:focus,
.form-select:focus,
.date-input:focus,
.submit-btn:focus {
    outline: 2px solid #4682B4;
    outline-offset: 2px;
}

/* Error states */
.form-input.error,
.form-select.error,
.date-input.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
}