/* Contact Page - Film Industry Focus */

#contact-page {
    display: flex;
    flex-direction: column;
    margin: 42px auto 0 auto;
    padding: 0 28px;
    max-width: 1100px;
    gap: 60px;
}

#contact-page * {
    z-index: 5;
}

/* Hero Section - Simplified and focused */
.contact-hero {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, 
        hsla(242, 30%, 15%, 0.3) 0%, 
        hsla(0, 0%, 8%, 0.4) 100%);
    border-radius: 30px;
    border: 1px solid hsla(248, 9%, 45%, 0.2);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, hsla(242, 61%, 80%, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, hsla(242, 61%, 80%, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.contact-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: hsla(0, 0%, 100%, 1);
    line-height: 1.1;
}

.contact-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin: 0 0 30px 0;
    color: hsla(0, 0%, 85%, 1);
}

.availability-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: hsla(120, 60%, 50%, 0.1);
    border: 1px solid hsla(120, 60%, 50%, 0.3);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.9rem;
    color: hsla(120, 60%, 70%, 1);
    font-weight: 500;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: hsla(120, 60%, 50%, 1);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Contact Grid - Two column layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

/* Contact Methods - Left side */
.contact-methods h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 30px 0;
    color: hsla(0, 0%, 100%, 1);
}

.method-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    margin-bottom: 20px;
    background: hsla(248, 9%, 45%, 0.1);
    border: 1px solid hsla(248, 9%, 45%, 0.2);
    border-radius: 20px;
    transition: all 300ms ease;
    cursor: pointer;
}

.method-card:hover {
    background: hsla(248, 9%, 45%, 0.15);
    border-color: hsla(242, 61%, 80%, 0.3);
    transform: translateY(-2px);
}

.method-card.primary {
    background: hsla(242, 61%, 80%, 0.1);
    border-color: hsla(242, 61%, 80%, 0.3);
}

.method-card.primary:hover {
    background: hsla(242, 61%, 80%, 0.15);
    border-color: hsla(242, 61%, 80%, 0.5);
}

/* Resume Card Specific Styling */
.method-card.resume-card {
    background: hsla(120, 61%, 50%, 0.08);
    border-color: hsla(120, 61%, 50%, 0.2);
}

.method-card.resume-card:hover {
    background: hsla(120, 61%, 50%, 0.12);
    border-color: hsla(120, 61%, 50%, 0.4);
}

.resume-card .method-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, 
        hsla(120, 61%, 50%, 0.15) 0%, 
        hsla(120, 61%, 40%, 0.15) 100%);
    border: 1px solid hsla(120, 61%, 50%, 0.3);
    border-radius: 10px;
    color: hsla(120, 61%, 70%, 1);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 300ms ease;
    margin-top: 8px;
}

.resume-download-btn:hover {
    background: linear-gradient(135deg, 
        hsla(120, 61%, 50%, 0.25) 0%, 
        hsla(120, 61%, 40%, 0.25) 100%);
    border-color: hsla(120, 61%, 50%, 0.5);
    color: hsla(120, 61%, 80%, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px hsla(120, 61%, 50%, 0.2);
}

.method-icon {
    font-size: 1.5rem;
    min-width: 40px;
    text-align: center;
}

.method-icon img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.method-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: hsla(0, 0%, 100%, 1);
}

.method-content p {
    font-size: 0.95rem;
    color: hsla(0, 0%, 75%, 1);
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.method-link {
    color: hsla(242, 61%, 80%, 1);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 300ms ease;
}

.method-link:hover {
    color: hsla(0, 0%, 100%, 1);
}

/* Contact Form - Right side */
.contact-form {
    background: hsla(201, 100%, 8%, 0.4);
    border: 1px solid hsla(248, 9%, 45%, 0.3);
    border-radius: 25px;
    padding: 40px;
    backdrop-filter: blur(15px);
}

.contact-form h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: hsla(0, 0%, 100%, 1);
}

.form-intro {
    font-size: 1rem;
    color: hsla(0, 0%, 85%, 1);
    margin: 0 0 30px 0;
    line-height: 1.5;
}

/* Form Styling */
.contact-form-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

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

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: hsla(0, 0%, 90%, 1);
    margin-bottom: 8px;
}

/* Required field asterisk styling */
.form-group label:has(+ input[required])::after,
.form-group label:has(+ textarea[required])::after {
    content: ' *';
    color: hsla(0, 84%, 60%, 1);
    font-weight: 600;
}

/* Style for manually added asterisks in HTML - they'll inherit the red color from the text */
.form-group label {
    position: relative;
    color: hsla(0, 0%, 90%, 1);
}

/* Make asterisks in labels red using a span or by styling the character */
.form-group label .required-asterisk {
    color: hsla(0, 84%, 60%, 1);
    font-weight: 600;
    margin-left: 2px;
}

/* Error states for required fields */
.form-group input.error,
.form-group textarea.error {
    border-color: hsla(0, 84%, 60%, 0.8) !important;
    background: hsla(0, 84%, 60%, 0.1) !important;
    box-shadow: 0 0 0 3px hsla(0, 84%, 60%, 0.2) !important;
    animation: errorShake 0.5s ease-in-out;
}

.form-group input.error:focus,
.form-group textarea.error:focus {
    border-color: hsla(0, 84%, 60%, 1) !important;
    box-shadow: 0 0 0 3px hsla(0, 84%, 60%, 0.3) !important;
}

/* Error shake animation */
@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

.form-group input,
.form-group select,
.form-group textarea {
    background: hsla(248, 9%, 45%, 0.15);
    border: 1px solid hsla(248, 9%, 45%, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: hsla(0, 0%, 100%, 1);
    transition: background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: hsla(242, 61%, 80%, 0.5);
    background: hsla(248, 9%, 45%, 0.2);
    box-shadow: 0 0 0 3px hsla(242, 61%, 80%, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* Optimize textarea resizing performance */
.form-group textarea:active {
    transition: none; /* Disable transitions during active resize */
}

.form-group textarea {
    /* Enable hardware acceleration for smoother resizing */
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.submit-btn {
    position: relative;
    background: linear-gradient(135deg, 
        hsla(242, 61%, 80%, 1) 0%, 
        hsla(242, 61%, 75%, 1) 100%);
    border: none;
    border-radius: 15px;
    padding: 15px 30px;
    color: hsla(0, 0%, 10%, 1);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 300ms ease;
    overflow: hidden;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px hsla(242, 61%, 80%, 0.3);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        hsla(0, 0%, 100%, 0.3) 50%, 
        transparent 100%);
    transition: left 0.5s ease;
}

.submit-btn:hover .btn-glow {
    left: 100%;
}

/* Response Info Section */
.response-info {
    background: hsla(248, 9%, 45%, 0.08);
    border: 1px solid hsla(248, 9%, 45%, 0.2);
    border-radius: 25px;
    padding: 50px 40px;
}

.info-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    margin: 0 0 40px 0;
    color: hsla(0, 0%, 100%, 1);
}

.response-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: hsla(242, 61%, 80%, 1);
    color: hsla(0, 0%, 10%, 1);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 20px auto;
}

.step-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: hsla(0, 0%, 100%, 1);
}

.step-content p {
    font-size: 0.95rem;
    color: hsla(0, 0%, 75%, 1);
    line-height: 1.4;
    margin: 0;
}

/* Social Media Grid Section */

.social-grid h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: hsla(0, 0%, 100%, 1);
    text-align: center;
}

.social-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.social-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px 12px;
    background: hsla(248, 9%, 45%, 0.1);
    border: 1px solid hsla(248, 9%, 45%, 0.2);
    border-radius: 15px;
    transition: all 300ms ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.social-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, hsla(242, 61%, 80%, 0.05) 100%);
    opacity: 0;
    transition: opacity 300ms ease;
}

.social-tile:hover {
    transform: translateY(-3px);
    border-color: hsla(242, 61%, 80%, 0.4);
}

.social-tile:hover::before {
    opacity: 1;
}

.social-tile.youtube:hover {
    border-color: hsla(0, 100%, 50%, 0.4);
}

.social-tile.instagram:hover {
    border-color: hsla(320, 100%, 50%, 0.4);
}

.social-tile.github:hover {
    border-color: hsla(210, 12%, 84%, 0.4);
}

.social-tile.letterboxd:hover {
    border-color: hsla(39, 100%, 50%, 0.4);
}

.social-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.social-icon img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 15px hsla(0, 0%, 0%, 0.5));
    object-fit: contain;
}

.social-content {
    position: relative;
    z-index: 2;
}

.social-content h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: hsla(0, 0%, 100%, 1);
}

.social-link {
    color: hsla(242, 61%, 80%, 1);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.75rem;
    transition: color 300ms ease;
}

.social-link:hover {
    color: hsla(0, 0%, 100%, 1);
}

/* Animation classes */
.pop-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 600ms ease;
}

.pop-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Clickable card and tile styles */
.clickable-card,
.clickable-tile {
    text-decoration: none;
    color: inherit;
    display: flex;
}

.clickable-card:hover,
.clickable-card:focus,
.clickable-tile:hover,
.clickable-tile:focus {
    text-decoration: none;
    color: inherit;
    outline: none;
}

.clickable-card .method-link,
.clickable-tile .social-link {
    text-decoration: none;
    pointer-events: none; /* Prevent double-click issues */
}

/* Comprehensive Responsive Design */

/* Large tablets and small desktops (1124px and below) */
@media (max-width: 1124px) {
    #contact-page {
        max-width: 900px;
        gap: 50px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }
    
    .contact-form {
        padding: 35px;
    }
    
    .method-card {
        padding: 20px;
    }
    
    .response-steps {
        gap: 35px;
    }
}

/* Standard tablets (768px and below) */
@media (max-width: 768px) {
    #contact-page {
        padding: 0 20px;
        gap: 40px;
        margin-top: 20px;
    }
    
    .contact-hero {
        padding: 50px 25px;
        border-radius: 20px;
    }
    
    .contact-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .contact-subtitle {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    
    .availability-status {
        font-size: 0.85rem;
        padding: 6px 14px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-methods h2,
    .contact-form h2 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    .contact-form {
        padding: 30px;
        border-radius: 20px;
    }
    
    .form-intro {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    
    .method-card {
        flex-direction: row;
        text-align: left;
        gap: 15px;
        padding: 20px;
        border-radius: 15px;
    }
    
    .method-icon img {
        width: 32px;
        height: 32px;
    }
    
    .method-content h3 {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .method-content p {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .method-link {
        font-size: 0.9rem;
    }
    
    .social-tiles {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .social-tile {
        padding: 12px 8px;
        border-radius: 12px;
    }
    
    .social-icon img {
        width: 35px;
        height: 35px;
    }
    
    .social-content h4 {
        font-size: 0.8rem;
    }
    
    .social-link {
        font-size: 0.7rem;
    }
    
    .response-steps {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 600px;
    }
    
    .step {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 20px;
    }
    
    .step-number {
        flex-shrink: 0;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin: 0;
    }
    
    .step-content h4 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .step-content p {
        font-size: 0.9rem;
    }
    
    .response-info {
        padding: 40px 30px;
        border-radius: 20px;
    }
    
    .info-content h3 {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
}

/* Small tablets and large phones (600px and below) */
@media (max-width: 600px) {
    #contact-page {
        padding: 0 16px;
        gap: 30px;
    }
    
    .contact-hero {
        padding: 40px 20px;
    }
    
    .contact-title {
        font-size: 2.2rem;
    }
    
    .contact-subtitle {
        font-size: 1rem;
    }
    
    /* Simplified method cards with essential info - maintain original structure */
    .method-card {
        flex-direction: row;
        text-align: left;
        gap: 12px;
        padding: 16px;
        margin-bottom: 10px;
        align-items: flex-start;
    }
    
    .method-icon {
        flex-shrink: 0;
        margin: 0;
    }
    
    .method-icon img {
        width: 32px;
        height: 32px;
    }
    
    /* Hide descriptions but show essential links */
    .method-content p {
        display: none;
    }
    
    .method-content .method-link {
        font-size: 0.75rem;
        margin-top: 4px;
    }
    
    .method-content h3 {
        font-size: 0.9rem;
        margin: 0 0 4px 0;
        font-weight: 600;
    }
    
    /* Keep original h3 text visible */
    .method-content h3 {
        font-size: 0.9rem;
        color: hsla(0, 0%, 100%, 1);
    }
    
    /* Simplified social tiles with handles - maintain original structure */
    .social-tiles {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .social-tile {
        padding: 12px 8px;
        min-height: 85px;
        justify-content: center;
        flex-direction: column;
        gap: 6px;
    }
    
    .social-icon {
        margin-bottom: 0;
    }
    
    .social-icon img {
        width: 32px;
        height: 32px;
    }
    
    /* Show social content with just handles */
    .social-content {
        display: block;
    }
    
    .social-content h4 {
        display: none;
    }
    
    .social-content .social-link {
        display: block;
        font-size: 0.7rem;
        color: hsla(242, 61%, 80%, 1);
    }
    
    /* Scaled down form */
    .contact-form {
        padding: 20px;
        border-radius: 15px;
    }
    
    .contact-form h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .form-intro {
        font-size: 0.85rem;
        margin-bottom: 20px;
        line-height: 1.4;
    }
    
    .contact-form-fields {
        gap: 16px;
    }
    
    .form-group label {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.85rem;
        border-radius: 8px;
    }
    
    .form-group textarea {
        min-height: 90px;
    }
    
    .submit-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        border-radius: 10px;
    }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
    #contact-page {
        padding: 0 14px;
        gap: 25px;
        margin-top: 15px;
    }
    
    .contact-hero {
        padding: 30px 16px;
        border-radius: 15px;
    }
    
    .contact-title {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    
    .contact-subtitle {
        font-size: 0.9rem;
        margin-bottom: 18px;
    }
    
    .availability-status {
        font-size: 0.75rem;
        padding: 5px 10px;
        border-radius: 15px;
    }
    
    .status-indicator {
        width: 6px;
        height: 6px;
    }
    
    .contact-methods h2,
    .contact-form h2 {
        font-size: 1.4rem;
        margin-bottom: 16px;
    }
    
    /* Method cards - maintain row layout with essential info */
    .method-card {
        padding: 14px;
        border-radius: 10px;
        margin-bottom: 12px;
        min-height: 70px;
        flex-direction: row;
        text-align: left;
        gap: 10px;
        align-items: flex-start;
    }
    
    .method-icon {
        flex-shrink: 0;
        margin: 0;
    }
    
    .method-icon img {
        width: 26px;
        height: 26px;
    }
    
    /* Keep descriptions hidden but show essential links */
    .method-content p {
        display: none;
    }
    
    .method-content .method-link {
        font-size: 0.7rem;
        margin-top: 3px;
    }
    
    .method-content h3 {
        font-size: 0.85rem;
        margin: 0 0 3px 0;
        font-weight: 600;
        color: hsla(0, 0%, 100%, 1);
    }
    
    /* Social tiles with handles */
    .social-tiles {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    
    .social-tile {
        padding: 12px 6px;
        border-radius: 8px;
        min-height: 65px;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
    }
    
    .social-icon img {
        width: 28px;
        height: 28px;
    }
    
    /* Show social content with handles */
    .social-content {
        display: block;
    }
    
    .social-content h4 {
        display: none;
    }
    
    .social-content .social-link {
        display: block;
        font-size: 0.65rem;
        color: hsla(242, 61%, 80%, 1);
    }
    
    /* Scaled down form */
    .contact-form {
        padding: 18px;
        border-radius: 12px;
    }
    
    .form-intro {
        font-size: 0.8rem;
        margin-bottom: 16px;
        line-height: 1.3;
    }
    
    .contact-form-fields {
        gap: 14px;
    }
    
    .form-group label {
        font-size: 0.75rem;
        margin-bottom: 5px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px 10px;
        font-size: 0.8rem;
        border-radius: 6px;
    }
    
    .form-group textarea {
        min-height: 80px;
    }
    
    .submit-btn {
        padding: 9px 16px;
        font-size: 0.85rem;
        border-radius: 8px;
        margin-top: 6px;
    }
    
    .response-info {
        padding: 25px 16px;
        border-radius: 12px;
    }
    
    .info-content h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .step-content h4 {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .step-content p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    #result {
        padding: 8px 12px;
        font-size: 0.8rem;
        border-radius: 6px;
        margin-top: 10px;
    }
}

@media (max-width: 440px) {
    /* Ultra compact form */
    .contact-form {
        padding: 14px;
        border-radius: 10px;
    }
    
    .form-intro {
        font-size: 0.7rem;
        margin-bottom: 12px;
        line-height: 1.2;
    }
    
    .contact-form-fields {
        gap: 10px;
    }
    
    .form-group label {
        font-size: 0.7rem;
        margin-bottom: 3px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 6px 8px;
        font-size: 0.7rem;
        border-radius: 5px;
    }
    
    .form-group textarea {
        min-height: 60px;
    }
    
    .submit-btn {
        padding: 7px 12px;
        font-size: 0.75rem;
        border-radius: 6px;
        margin-top: 4px;
    }
    
    .response-info {
        padding: 16px 10px;
        border-radius: 10px;
    }
    
    .info-content h3 {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .step-content h4 {
        font-size: 0.75rem;
        margin-bottom: 2px;
    }
    
    .step-content p {
        font-size: 0.65rem;
        line-height: 1.2;
    }

    /* Method cards - maintain row layout with essential info at smallest size */
    .method-card {
        padding: 10px;
        border-radius: 8px;
        margin-bottom: 8px;
        min-height: 55px;
        flex-direction: row;
        text-align: left;
        gap: 8px;
        align-items: flex-start;
    }
    
    .method-icon {
        flex-shrink: 0;
        margin: 0;
    }
    
    .method-icon img {
        width: 20px;
        height: 20px;
    }
    
    /* Keep descriptions hidden but show essential links */
    .method-content p {
        display: none;
    }
    
    .method-content .method-link {
        font-size: 0.65rem;
        margin-top: 2px;
    }
    
    .method-content h3 {
        font-size: 0.75rem;
        margin: 0 0 2px 0;
        font-weight: 600;
        color: hsla(0, 0%, 100%, 1);
    }
    
    /* Social tiles with handles at smallest size */
    .social-tiles {
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }
    
    .social-tile {
        padding: 8px 4px;
        border-radius: 6px;
        min-height: 50px;
        justify-content: center;
        flex-direction: column;
        gap: 3px;
    }
    
    .social-icon img {
        width: 24px;
        height: 24px;
    }
    
    /* Show social content with handles */
    .social-content {
        display: block;
    }
    
    .social-content h4 {
        display: none;
    }
    
    .social-content .social-link {
        display: block;
        font-size: 0.6rem;
        color: hsla(242, 61%, 80%, 1);
    }
}

/* Extra small phones (360px and below) */
@media (max-width: 380px) {
    #contact-page {
        padding: 0 10px;
        gap: 20px;
        margin-top: 8px;
    }
    
    .contact-hero {
        padding: 20px 10px;
        border-radius: 10px;
    }
    
    .contact-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
        line-height: 1.1;
    }
    
    .contact-subtitle {
        font-size: 0.8rem;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    
    .availability-status {
        font-size: 0.65rem;
        padding: 3px 6px;
        border-radius: 10px;
        gap: 3px;
    }
    
    .status-indicator {
        width: 4px;
        height: 4px;
    }
    
    .contact-methods h2,
    .contact-form h2 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    /* Ultra compact form */
    .contact-form {
        padding: 12px;
        border-radius: 13px;
    }
    
    .form-intro {
        font-size: 0.65rem;
        margin-bottom: 10px;
        line-height: 1.1;
    }
    
    .contact-form-fields {
        gap: 8px;
    }
    
    .form-group label {
        font-size: 0.65rem;
        margin-bottom: 2px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 4px 6px;
        font-size: 0.65rem;
        border-radius: 7px;
    }
    
    .form-group textarea {
        min-height: 60px;
    }
    
    .submit-btn {
        padding: 5px 10px;
        font-size: 0.7rem;
        border-radius: 8px;
        margin-top: 3px;
    }
    
    .response-info {
        padding: 14px 8px;
        border-radius: 12px;
    }
    
    .info-content h3 {
        font-size: 0.9rem;
        margin-bottom: 13px;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }
    
    .step-number {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }
    
    .step-content h4 {
        font-size: 0.7rem;
        margin-bottom: 2px;
    }
    
    .step-content p {
        font-size: 0.6rem;
        line-height: 1.1;
    }

    /* Method cards - maintain row layout with essential info at smallest size */
    .method-card {
        padding: 8px;
        border-radius: 6px;
        margin-bottom: 6px;
        min-height: 50px;
        flex-direction: row;
        text-align: left;
        gap: 6px;
        align-items: flex-start;
    }
    
    .method-icon {
        flex-shrink: 0;
        margin: 0;
    }
    
    .method-icon img {
        width: 20px;
        height: 20px;
    }
    
    /* Keep descriptions hidden but show essential links */
    .method-content p {
        display: none;
    }
    
    .method-content .method-link {
        font-size: 0.65rem;
        margin-top: 2px;
    }
    
    .method-content h3 {
        font-size: 0.7rem;
        margin: 0 0 2px 0;
        font-weight: 600;
        color: hsla(0, 0%, 100%, 1);
    }
    
    /* Social tiles with handles at smallest size */
    .social-tiles {
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }
    
    .social-tile {
        padding: 7px 3px;
        border-radius: 7px;
        min-height: 50px;
        justify-content: center;
        flex-direction: column;
        gap: 3px;
    }
    
    .social-icon img {
        width: 24px;
        height: 24px;
    }
    
    /* Show social content with handles */
    .social-content {
        display: block;
    }
    
    .social-content h4 {
        display: none;
    }
    
    .social-content .social-link {
        display: block;
        font-size: 0.55rem;
        color: hsla(242, 61%, 80%, 1);
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    #contact-page {
        gap: 15px;
        margin-top: 10px;
    }
    
    .contact-hero {
        padding: 20px 15px;
        border-radius: 12px;
    }
    
    .contact-title {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .contact-subtitle {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }
    
    .availability-status {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .contact-methods h2,
    .contact-form h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .form-intro {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }
    
    .method-card {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .response-info {
        padding: 20px 15px;
    }
    
    .response-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
        margin-bottom: 0;
    }
    
    .step-content h4 {
        font-size: 0.8rem;
        margin-bottom: 3px;
    }
    
    .step-content p {
        font-size: 0.7rem;
    }
    
    .info-content h3 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
}

/* Focus and accessibility */
.method-card:focus,
.submit-btn:focus,
.social-tile:focus {
    outline: 2px solid hsla(242, 61%, 80%, 0.8);
    outline-offset: 2px;
}

/* Enhanced touch interactions for mobile */
@media (hover: none) and (pointer: coarse) {
    .method-card,
    .social-tile {
        transition: all 150ms ease;
    }
    
    .method-card:active {
        transform: scale(0.98);
        background: hsla(248, 9%, 45%, 0.2);
    }
    
    .social-tile:active {
        transform: scale(0.95);
    }
    
    .submit-btn:active {
        transform: scale(0.98);
    }
    
    /* Increase touch targets for better usability */
    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 44px; /* iOS recommended touch target */
    }
    
    .submit-btn {
        min-height: 44px;
        min-width: 120px;
    }
    
    .social-tile {
        min-height: 44px;
    }
    
    .method-card {
        min-height: 60px;
    }
}

/* Reduce animations on devices that prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .pop-in,
    .method-card,
    .social-tile,
    .submit-btn,
    .status-indicator {
        animation: none !important;
        transition: none !important;
    }
    
    .btn-glow {
        display: none;
    }
}

/* Ensure proper stacking context */
#contact-page {
    position: relative;
    z-index: 5;
}

@keyframes contactRipple {
    from {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.6;
    }
    to {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

#result {
    display: none;
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.3s ease, transform 0.3s ease;
    animation: slideInUp 0.3s ease-out;
}

#result.loading {
    background: hsla(214, 100%, 60%, 0.1);
    border: 1px solid hsla(214, 100%, 60%, 0.3);
    color: hsla(214, 100%, 60%, 1);
}

#result.success {
    background: hsla(152, 81%, 60%, 0.1);
    border: 1px solid hsla(152, 81%, 60%, 0.3);
    color: hsla(152, 81%, 60%, 1);
}

#result.error {
    background: hsla(0, 84%, 60%, 0.1);
    border: 1px solid hsla(0, 84%, 60%, 0.3);
    color: hsla(0, 84%, 60%, 1);
}

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