/* Residential Rehabilitation Page Specific Styles */

/* Page Hero */
.residential-hero {
    background: linear-gradient(rgba(13, 148, 136, 0.85), rgba(13, 148, 136, 0.9)), url('../images/residential-rehab-hero.jpg') no-repeat center center/cover;
    color: var(--white);
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.residential-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.residential-hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 40px;
    animation: fadeInUp 1s ease 0.2s both;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-light);
    line-height: 1;
    margin-bottom: 5px;
}

.hero-stats .stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Program Overview */
.program-overview {
    background-color: var(--white);
    padding: 80px 0;
}

.overview-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.overview-text {
    flex: 1;
}

.overview-text h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.overview-text > p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.program-highlights {
    margin: 30px 0;
}

.highlight {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--text-color);
}

.highlight i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.overview-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.overview-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.overview-image:hover img {
    transform: scale(1.05);
}

/* Program Phases */
.program-phases {
    background-color: var(--light-color);
    padding: 80px 0;
}

.phases-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
}

.phases-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    z-index: 1;
}

.phase-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
    transition: var(--transition);
    border-top: 5px solid var(--primary-color);
}

.phase-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.phase-1 {
    border-top-color: #0d9488;
}

.phase-2 {
    border-top-color: #10b981;
}

.phase-3 {
    border-top-color: #f59e0b;
}

.phase-4 {
    border-top-color: #8b5cf6;
}

.phase-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.phase-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.phase-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.phase-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.duration {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.phase-features {
    list-style: none;
}

.phase-features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: var(--text-light);
    position: relative;
    padding-left: 25px;
}

.phase-features li:last-child {
    border-bottom: none;
}

.phase-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Treatment Approaches */
.treatment-approaches {
    background-color: var(--light-color);
    padding: 80px 0;
}

.approaches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.approach-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.approach-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.approach-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: var(--transition);
}

.approach-card:hover .approach-icon {
    background-color: var(--primary-color);
    color: white;
    transform: rotate(15deg) scale(1.1);
}

.approach-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.approach-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Admissions Form */
.admissions-form {
    background-color: var(--white);
    padding: 80px 0;
}

.form-container {
    display: flex;
    gap: 50px;
    background-color: var(--light-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-intro {
    flex: 1;
}

.form-intro h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.form-intro > p {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.admission-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.step {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 15px;
    font-size: 1.2rem;
}

.step h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.step p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.form-wrapper {
    flex: 1;
}

#residential-admission-form {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

#residential-admission-form .form-group {
    margin-bottom: 20px;
}

#residential-admission-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
}

#residential-admission-form input,
#residential-admission-form select,
#residential-admission-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--white);
    font-family: inherit;
}

#residential-admission-form input:focus,
#residential-admission-form select:focus,
#residential-admission-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

#residential-admission-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%230d9488' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
}

#residential-admission-form .form-row {
    display: flex;
    gap: 15px;
}

#residential-admission-form .form-row .form-group {
    flex: 1;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.checkbox-label input {
    margin-right: 10px;
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: var(--primary-dark);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.cta-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-buttons .emergency-btn {
    background-color: var(--white);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.cta-buttons .btn-secondary {
    background-color: var(--accent-color);
    color: var(--white);
}

.cta-buttons .emergency-btn:hover {
    background-color: var(--light-color);
}

.cta-buttons .btn-secondary:hover {
    background-color: #e69500;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .form-container {
        flex-direction: column;
    }
}

@media (max-width: 992px) {
    .overview-content {
        flex-direction: column;
    }
    
    .phases-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .residential-hero {
        padding: 150px 0 80px;
        min-height: 60vh;
    }
    
    .residential-hero h1 {
        font-size: 3rem;
    }
    
    .residential-hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .phases-timeline {
        grid-template-columns: 1fr;
    }
    
    .phases-timeline::before {
        display: none;
    }
    
    .approaches-grid {
        grid-template-columns: 1fr;
    }
    
    .admission-steps {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    #residential-admission-form {
        padding: 25px 20px;
    }
    
    #residential-admission-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .residential-hero {
        padding: 130px 0 60px;
    }
    
    .residential-hero h1 {
        font-size: 2.5rem;
    }
    
    .overview-text h2 {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .residential-hero h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .hero-stats .stat-number {
        font-size: 2rem;
    }
    
    .overview-text h2 {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}