/*
 * Contact Page Styles
 * Theme: Stellar Lights
 */

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    margin-top: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    padding-top: 120px;
    box-sizing: border-box;
}

.hero-content h1 {
    font-family: 'Titillium Web', sans-serif;
    font-size: 70px;
    font-weight: 600;
    margin-bottom: 20px;
    max-width: 1364px;
    margin-top: -100px;
}

.hero-content p {
    font-family: 'Titillium Web', sans-serif;
    font-size: 25px;
    line-height: 1.6;
    max-width: 1088px;
    margin: 0 auto 30px;
    text-align: center;
}

/* Photo Credit Container */
.photo-credit-container {
    position: absolute;
    bottom: 0.5px;
    width: 100%;
    left: 0;
}

.photo-credit {
    position: relative;
    font-family: 'Titillium Web', sans-serif;
    font-size: 20px;
    color: white;
    opacity: 0.8;
    font-style: italic;
    text-align: right;
    margin-bottom: 15px;
}

.photo-credit-line {
    width: 100%;
    height: 1px;
    background-color: #707070;
    opacity: 0.4;

}


/* Responsive Adjustments */

/* Small screens (up to 576px) */
@media (max-width: 576px) {
    .hero-section {
        margin-top: 0;
        padding-top: 0;
    }

    .hero-content {
        padding-top: 100px;
    }

    .hero-content h1 {
        font-size: 8vw;
    }

    .hero-content p {
        font-size: 1rem;
        max-width: 100%;
    }

    .photo-credit-container {
        bottom: 60px;
    }

    .photo-credit {
        padding-right: 20px;
        font-size: 12px;
        margin-bottom: 10px;
    }
}

/* Medium screens (576px to 768px) */
@media (min-width: 577px) and (max-width: 768px) {
    .hero-section {
        margin-top: 0;
        padding-top: 0;
    }

    .hero-content {
        padding-top: 110px;
    }

    .hero-content h1 {
        font-size: 6vw;
    }

    .hero-content p {
        font-size: 1.2rem;
        max-width: 90%;
    }

    .photo-credit {
        padding-right: 30px;
        font-size: 13px;
    }
}

/* Large screens (768px to 992px) */
@media (min-width: 769px) and (max-width: 992px) {
    .hero-content h1 {
        font-size: 5vw;
    }

    .hero-content p {
        font-size: 1.5rem;
    }

    .photo-credit {
        padding-right: 50px;
    }
}

/* Extra large screens (992px and above) */
@media (min-width: 993px) {
    .hero-content h1 {
        font-size: 70px;
    }

    .hero-content p {
        font-size: 25px;
    }

    .photo-credit {
        padding-right: 140px;
    }
}

/* Contact Container */
.contact-container {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.contact-content {
    width: 95%;
}

.contact-content h2 {
    font-family: 'Titillium Web', sans-serif;
    font-size: 50px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    color: #FFFFFF;
}

.contact-intro {
    font-family: 'Titillium Web', sans-serif;
    font-size: 22px;
    line-height: 1.6;
    color: #FFFFFF;
    margin-bottom: 50px;
    text-align: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 2.2px;
}

/* Contact Form */
.contact-form {
    width: 82%;
    margin-left: 100px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 20px;
}

.form-group {
    position: relative;
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 10px 5px 10px;
    border: #ccc solid 1px;
    font-family: 'Titillium Web', sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    background: #FFFFFF1A;
    transition: all 0.3s ease;
    border-radius: 9px;

}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    padding-top: 25px;
}

.form-group label {
    position: absolute;
    top: 8px;
    left: 10px;
    font-family: 'Titillium Web', sans-serif;
    font-size: 19px;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    pointer-events: none;
    font-style: italic;
    letter-spacing: 2.2px;
    margin-left: 5px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    color: rgba(255, 255, 255, 0.5);
}

/* .form-group input:focus+label,
.form-group input:valid+label,
.form-group textarea:focus+label,
.form-group textarea:valid+label {
    top: 8px;
    font-size: 19px;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 5px;
} */
.form-group input:not(:placeholder-shown)+label,
.form-group input:focus+label,
.form-group textarea:not(:placeholder-shown)+label,
.form-group textarea:focus+label {
    top: -30px;
    left: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 0;
    opacity: 1;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
    opacity: 1;
    transition: all 0.2s ease;
    font-style: italic;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    color: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.event-detail-group h3 {
    font-family: 'Titillium Web', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.5);
}

.submit-button {
    display: block;
    width: 160px;
    height: 52px;
    padding: 15px;
    margin: 40px auto 0;
    background-color: #000;
    color: white;
    font-family: 'Titillium Web', sans-serif;
    font-size: 25px;
    font-weight: 600;
    padding: 0.5rem 2rem;
    border: 1px solid #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2.9px;
    border-radius: 9px;
}

.submit-button:hover {
    background-color: #ccc;
    color: black;
}

.submit-button:disabled {
    background-color: #666;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Fix for button text overflow */
.submit-button {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 160px;
    max-width: 200px;
}

/* Ensure button maintains size during loading */
.submit-button:disabled {
    min-width: 160px;
    max-width: 200px;
}

/* Form Message Styles */
.form-message {
    margin: 20px auto;
    padding: 15px 20px;
    border-radius: 9px;
    font-family: 'Titillium Web', sans-serif;
    font-size: 16px;
    text-align: center;
    max-width: 600px;
    transition: all 0.3s ease;
}

.success-message {
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4CAF50;
}

.error-message {
    background-color: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #F44336;
}

/* Active label state */
.form-group label.active {
    top: -30px;
    left: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 0;
    opacity: 1;
}

/* Responsive Adjustments for Contact Form */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-content h2 {
        font-size: 32px;
    }

    .contact-intro {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .contact-container {
        margin: 50px auto;
    }

    .contact-content h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .submit-btn {
        width: 100%;
    }
}

/* Improved Date Input Styling */
input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
    color: rgba(255, 255, 255, 0.5) !important;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.8);
    cursor: pointer;
    padding-right: 5px;
}

input[type="date"]::-webkit-datetime-edit {
    color: rgba(255, 255, 255, 0.5);
}

input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    color: rgba(255, 255, 255, 0.5);
}

/* Placeholder visibility and interaction */
.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    color: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

/* Ensure placeholders are visible when input is empty and not focused */
.form-group input:not(:focus):not(:valid)::placeholder,
.form-group textarea:not(:focus):not(:valid)::placeholder {
    color: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

/* Hide placeholders when input has content */
.form-group input:not(:placeholder-shown)::placeholder,
.form-group textarea:not(:placeholder-shown)::placeholder {
    color: transparent;
    opacity: 0;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {
    .contact-form {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-content h2 {
        font-size: 32px;
    }

    .contact-intro {
        font-size: 16px;
        letter-spacing: 1px;
        padding: 0 10px;
    }

    .form-grid {
        gap: 15px;
    }

    .form-group label {
        font-size: 16px;
        top: 8px;
        left: 10px;
    }

    .form-group input:focus+label,
    .form-group input:valid+label,
    .form-group textarea:focus+label,
    .form-group textarea:valid+label {
        font-size: 14px;
        top: -25px;
        left: 0;
        color: rgba(255, 255, 255, 0.8);
    }

    .form-group input,
    .form-group textarea {
        padding: 12px 10px 5px 10px;
        font-size: 16px;
    }

    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: rgba(255, 255, 255, 0.3);
        opacity: 1;
        font-size: 16px;
    }

    .submit-button {
        width: 120px;
        height: 45px;
        font-size: 20px;
        padding: 0.3rem 1rem;
    }
}

@media (max-width: 480px) {
    .contact-content h2 {
        font-size: 28px;
    }

    .contact-intro {
        font-size: 14px;
    }

    .form-group label {
        font-size: 14px;
        top: 8px;
        left: 10px;
    }

    .form-group input:focus+label,
    .form-group input:valid+label,
    .form-group textarea:focus+label,
    .form-group textarea:valid+label {
        font-size: 12px;
        top: -20px;
        left: 0;
        color: rgba(255, 255, 255, 0.8);
    }

    .form-group input,
    .form-group textarea {
        font-size: 14px;
        padding: 10px 8px 4px 8px;
    }

    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: rgba(255, 255, 255, 0.3);
        opacity: 1;
        font-size: 14px;
    }

    .submit-button {
        width: 100%;
        max-width: 148px;
    }

    .form-message {
        font-size: 14px;
        padding: 12px 15px;
        margin: 15px auto;
    }
}

/* Instagram Section */
.instagram-section {
    margin-top: 60px;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    max-width: 100vw;
    overflow-x: hidden;
}

.instagram-header {
    margin-bottom: 30px;
    padding: 0 10px;
    text-align: center;
}

.follow-text {
    font-family: 'Titillium Web', sans-serif;
    font-size: 35px;
    color: #FFFFFF;
    letter-spacing: 3.5px;
    font-weight: 600;
}

.instagram-reels-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    /* Center reels on desktop */
    flex-wrap: nowrap;
    padding-bottom: 20px;
    width: 100%;
    max-width: 1600px;
    /* Increased to prevent cutting off edge reels */
    margin: 0 auto;
    padding-left: 50px;
    padding-right: 50px;
}

/* Responsive adjustments */
@media (max-width: 1600px) {
    .instagram-reels-container {
        max-width: 1400px;
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 1400px) {
    .instagram-reels-container {
        justify-content: center;
        max-width: 1200px;
        padding-left: 30px;
        padding-right: 30px;
    }

    .instagram-reel {
        flex: 0 0 220px;
        height: 295px;
    }
}

/* Enable horizontal scrolling only on mobile/tablet */
@media (max-width: 1024px) {
    .instagram-section {
        width: 100%;
        max-width: 100%;
        left: 0;
        transform: none;
    }

    .instagram-reels-container {
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
        /* For Firefox */
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling on iOS */
        padding-left: 25px;
        padding-right: 15px;
    }

    .instagram-reels-container::-webkit-scrollbar {
        display: none;
        /* For Chrome/Safari */
    }

    .instagram-reel {
        flex: 0 0 210px;
        height: 280px;
    }
}

.instagram-reel {
    position: relative;
    flex: 0 0 230px;
    /* Reduced from 261px to fit more reels in view */
    height: 310px;
    /* Adjusted height to maintain aspect ratio */
    cursor: pointer;
    text-decoration: none;
    border-radius: 9px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.reel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.reel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-reel:hover .reel-overlay {
    opacity: 1;
}

.instagram-reel:hover .reel-image {
    transform: scale(1.05);
}

/* Responsive Styles - refined */
@media (max-width: 1200px) {
    .instagram-reel {
        flex: 0 0 230px;
        height: 308px;
    }

    .follow-text {
        font-size: 30px;
    }
}

@media (max-width: 992px) {
    .instagram-reel {
        flex: 0 0 200px;
        height: 267px;
    }

    .follow-text {
        font-size: 28px;
        letter-spacing: 2.5px;
    }
}

@media (max-width: 768px) {
    .instagram-reel {
        flex: 0 0 180px;
        height: 240px;
    }

    .follow-text {
        font-size: 24px;
        letter-spacing: 2px;
    }

    .instagram-section {
        margin-top: 40px;
    }
}

@media (max-width: 576px) {
    .follow-text {
        font-size: 20px;
        letter-spacing: 1.5px;
    }

    .instagram-reel {
        flex: 0 0 160px;
        height: 220px;
    }

    .instagram-reels-container {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .follow-text {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .instagram-reel {
        flex: 0 0 140px;
        height: 190px;
    }

    .instagram-reels-container {
        gap: 12px;
        padding-left: 15px;
    }
}