/* ===== CONTACT PAGE SPECIFIC STYLES ===== */

/* ===== CONTACT HEADER ===== */
.contact-header {
    background: linear-gradient(135deg, var(--vintage-cream) 0%, var(--vintage-white) 100%);
    padding: 120px 0 80px;
}

/* ===== CONTACT METHODS ===== */
.contact-methods {
    padding: 100px 0;
    background: var(--vintage-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* ===== RETRO TERMINAL ===== */
.contact-terminal {
    background: var(--vintage-black);
    border: 3px solid var(--vintage-red);
    border-radius: var(--border-radius);
    box-shadow: 
        0 0 20px rgba(211, 47, 47, 0.3),
        inset 0 0 20px rgba(211, 47, 47, 0.1);
    font-family: 'Courier Prime', monospace;
}

.terminal-header {
    background: var(--vintage-red);
    color: var(--vintage-white);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

.terminal-title {
    font-size: 14px;
    letter-spacing: 1px;
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--vintage-white);
    opacity: 0.8;
    cursor: pointer;
}

.control-btn:hover {
    opacity: 1;
}

.terminal-body {
    padding: 2rem;
    min-height: 400px;
    color: var(--vintage-red-light);
    font-size: 14px;
    line-height: 1.5;
}

.command-line {
    margin-bottom: 0.5rem;
}

.command-line.active {
    animation: terminalBlink 1s infinite;
}

.prompt {
    color: var(--vintage-red);
    font-weight: bold;
}

.command-output {
    color: var(--vintage-red-light);
    margin: 1rem 0 1.5rem 0;
    padding-left: 1rem;
    border-left: 2px solid var(--vintage-red);
    white-space: pre-line;
}

.cursor.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes terminalBlink {
    0%, 70% { background: transparent; }
    71%, 100% { background: rgba(211, 47, 47, 0.1); }
}

/* ===== QUICK CONTACT CARDS ===== */
.quick-contact h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--vintage-black);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.quick-contact h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--vintage-red);
}

.contact-card {
    background: var(--vintage-cream);
    border: 2px solid var(--vintage-gray-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: var(--vintage-red);
    transition: left 0.3s ease;
}

.contact-card:hover::before {
    left: 0;
}

.contact-card:hover {
    border-color: var(--vintage-red);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* Contact Card Variations */
.contact-card.phone-card:hover {
    background: rgba(33, 150, 243, 0.05);
}

.contact-card.emergency-card {
    background: rgba(211, 47, 47, 0.05);
    border-color: var(--vintage-red);
}

.contact-card.emergency-card .contact-icon {
    animation: emergencyPulse 2s ease infinite;
}

.contact-card.email-card:hover {
    background: rgba(76, 175, 80, 0.05);
}

.contact-card.location-card:hover {
    background: rgba(255, 152, 0, 0.05);
}

/* Contact Icons */
.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--vintage-white);
    border: 2px solid var(--vintage-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-icon.emergency {
    background: var(--vintage-red);
    color: var(--vintage-white);
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--vintage-red);
}

.contact-icon.emergency i {
    color: var(--vintage-white);
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Contact Info */
.contact-info {
    flex: 1;
}

.contact-info h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--vintage-black);
    margin-bottom: 0.3rem;
}

.contact-value {
    font-weight: 600;
    color: var(--vintage-red);
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.contact-note {
    color: var(--vintage-gray);
    font-size: 0.9rem;
}

/* Contact Buttons */
.btn-vintage.small {
    padding: 8px 16px;
    font-size: 0.8rem;
    min-width: 80px;
}

.btn-vintage.emergency {
    background: var(--vintage-red);
    border-color: var(--vintage-red);
    animation: emergencyGlow 1.5s ease infinite;
}

/* ===== CONTACT FORM SECTION ===== */
.contact-form-section {
    padding: 100px 0;
    background: var(--vintage-cream);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--vintage-white);
    border: 3px solid var(--vintage-red);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.form-header {
    background: var(--vintage-red);
    color: var(--vintage-white);
    padding: 2rem;
    text-align: center;
}

.form-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.form-header p {
    opacity: 0.9;
}

/* ===== VINTAGE FORM STYLING ===== */
.vintage-form {
    padding: 3rem;
}

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

.form-group {
    position: relative;
}

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

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--vintage-gray);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

/* Prevent pointer events only on non-checkbox labels */
.form-group label:not(.checkbox-label) {
    pointer-events: none;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--vintage-gray-light);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--vintage-white);
    color: var(--vintage-black);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--vintage-red);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
    transform: translateY(-2px);
}

.form-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--vintage-red);
    transition: width 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.form-group input:focus + .form-decoration,
.form-group select:focus + .form-decoration,
.form-group textarea:focus + .form-decoration {
    width: 100%;
}

/* Checkbox Styling */
.checkbox-group {
    margin: 2rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--vintage-gray);
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 28px;
    height: 28px;
}

.checkmark {
    display: inline-block;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    border: 3px solid var(--vintage-red);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: var(--vintage-white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 0;
}

.checkbox-label input:checked + .checkmark {
    background: var(--vintage-red);
    border-color: var(--vintage-red);
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--vintage-white);
    font-size: 18px;
    font-weight: bold;
}

.privacy-link {
    color: var(--vintage-red);
    text-decoration: underline;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-vintage.large {
    padding: 16px 32px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== MAP SECTION ===== */
.map-section {
    padding: 100px 0;
    background: var(--vintage-white);
}

.map-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Polaroid Foto */
.polaroid-photo-large {
    position: relative;
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.polaroid-photo-large:hover {
    transform: rotate(0deg) translateY(-5px);
}

.polaroid-inner {
    background: var(--vintage-white);
    padding: 15px 15px 60px 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

.photo-container {
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: var(--vintage-cream);
    position: relative;
}

.location-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: contrast(1.1) saturate(0.9);
}

.polaroid-caption {
    text-align: center;
    padding: 15px 10px 0;
    font-family: 'Courier Prime', monospace;
}

.photo-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--vintage-black);
    margin: 0 0 5px 0;
    letter-spacing: 1px;
}

.photo-location {
    font-size: 0.95rem;
    color: var(--vintage-gray);
    margin: 0 0 5px 0;
}

.photo-year {
    font-size: 0.85rem;
    color: var(--vintage-red);
    margin: 0;
    font-weight: bold;
}

.polaroid-shadow {
    position: absolute;
    bottom: -15px;
    left: 10%;
    right: 10%;
    height: 20px;
    background: rgba(0, 0, 0, 0.2);
    filter: blur(15px);
    z-index: -1;
}

/* Location Info */
.location-info h3 {
    font-family: var(--font-heading);
    color: var(--vintage-red);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--vintage-cream);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--vintage-red);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--vintage-red);
    margin-top: 0.2rem;
    min-width: 24px;
}

.info-item h4 {
    font-family: var(--font-heading);
    color: var(--vintage-black);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-item p {
    color: var(--vintage-gray);
    line-height: 1.5;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .contact-header {
        padding: 100px 0 60px;
    }
    
    .contact-methods,
    .contact-form-section,
    .map-section {
        padding: 60px 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 2rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .vintage-form {
        padding: 2rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-vintage.large {
        width: 100%;
        justify-content: center;
    }
    
    .map-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .polaroid-photo-large {
        transform: rotate(0deg);
    }
    
    .photo-container {
        height: 350px;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .terminal-body {
        padding: 1.5rem;
        font-size: 12px;
    }
    
    .contact-card {
        padding: 1.5rem 1rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-icon i {
        font-size: 1.2rem;
    }
    
    .form-container {
        margin: 0 1rem;
    }
    
    .form-header {
        padding: 1.5rem;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .vintage-form {
        padding: 1.5rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes emergencyPulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4);
    }
    50% { 
        box-shadow: 0 0 0 10px rgba(211, 47, 47, 0);
    }
}

@keyframes emergencyGlow {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(211, 47, 47, 0.5);
    }
    50% { 
        box-shadow: 0 0 15px rgba(211, 47, 47, 0.8);
    }
}