/* Responsive CSS that works properly on all screen sizes */
.contact-page {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    padding: 0;
    overflow-x: hidden;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.page-header {
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 80px; /* space for navbar */
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.right-column {
    display: flex;
    flex-direction: column;
}

.about-section,
.membership-slideshow,
.contact-form-section {
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    background: white;
}

.about-section {
    flex-shrink: 0;
}

.membership-slideshow {
    flex: 1;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.contact-form-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.about-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-section h2::before {
    content: '';
    width: 4px;
    height: 1.5rem;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-radius: 2px;
}

.about-section p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.about-section p:last-child {
    margin-bottom: 0;
}

.slideshow-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.slideshow-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.slideshow-header h2::before {
    content: '';
    width: 4px;
    height: 1.5rem;
    background: linear-gradient(135deg, #ea580c, #f97316);
    border-radius: 2px;
}

.slideshow-controls {
    display: flex;
    gap: 0.5rem;
}

.slideshow-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #ea580c, #f97316);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.slideshow-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(234, 88, 12, 0.3);
}

.slideshow-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.slideshow-container {
    position: relative;
    flex: 1;
    min-height: 200px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

.slide.active {
    opacity: 1;
}

.slide-icon {
    width: 150px;
    height: 150px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: #ffffff; /*linear-gradient(135deg, #ea580c, #f97316);*/
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.slide-icon img {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.slide h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.slide p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.form-header {
    text-align: center;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.form-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9fafb;
    box-sizing: border-box;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    flex: 1;
}

.form-checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-checkbox {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: #3b82f6;
}

.form-checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
    font-size: 0.9rem;
}

.form-error {
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.submit-btn {
    width: 100%;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    flex-shrink: 0;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.3);
}

.messages {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.messages li {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.messages .success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.messages .error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Responsive Design - Tablet and below */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .membership-slideshow {
        min-height: 250px;
    }
    
    .slideshow-container {
        min-height: 180px;
    }
}

/* Small laptops and tablets */
@media (max-width: 768px) {
    .page-header {
        margin-top: 60px;
        margin-bottom: 1.5rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .about-section,
    .membership-slideshow,
    .contact-form-section {
        padding: 1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .slideshow-container {
        min-height: 160px;
    }
    
    .slide-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .membership-slideshow {
        min-height: 220px;
    }
}

/* Small screens like 11" laptops */
@media (max-width: 640px) {
    .contact-container {
        padding: 0 0.75rem;
    }
    
    .page-header {
        margin-top: 40px;
        margin-bottom: 1rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .content-grid {
        gap: 0.75rem;
    }
    
    .about-section,
    .membership-slideshow,
    .contact-form-section {
        padding: 0.75rem;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .about-section h2,
    .slideshow-header h2 {
        font-size: 1.3rem;
    }
    
    .slideshow-container {
        min-height: 140px;
    }
    
    .slide-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .slide h3 {
        font-size: 1rem;
    }
    
    .slide p {
        font-size: 0.85rem;
    }
    
    .membership-slideshow {
        min-height: 200px;
    }
    
    .form-textarea {
        min-height: 80px;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .contact-container {
        padding: 0 0.5rem;
    }
    
    .page-header {
        margin-top: 30px;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .about-section,
    .membership-slideshow,
    .contact-form-section {
        padding: 0.5rem;
    }
    
    .content-grid {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .form-header h2 {
        font-size: 1.3rem;
    }
    
    .about-section h2,
    .slideshow-header h2 {
        font-size: 1.2rem;
    }
    
    .slideshow-container {
        min-height: 120px;
    }
    
    .membership-slideshow {
        min-height: 180px;
    }
    
    .slide-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .slide h3 {
        font-size: 0.95rem;
    }
    
    .slide p {
        font-size: 0.8rem;
    }
    
    .form-textarea {
        min-height: 70px;
    }
    
    .submit-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
    }
}