/* 
   Contact Page Specific Styles for God At Home
   Includes: Glassmorphism form, Floating labels, and Map Placeholder 
*/

/* --- Contact Hero Section --- */
.contact-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 100px;
    z-index: 2;
}

/* --- Contact Main Layout Grid --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
    margin-top: -3rem;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* --- Contact Info Panel (Left Side) --- */
.contact-info-container {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.contact-info-container .subtitle {
    margin-bottom: 2rem;
    color: var(--color-text-light);
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
    background: linear-gradient(to right, var(--color-primary-start), var(--color-primary-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-top: 0.2rem;
}

.contact-item h4 {
    margin-bottom: 0.3rem;
    color: var(--color-primary-end);
    font-size: 1.1rem;
}

/* --- Interactive Map Placeholder --- */
.map-placeholder {
    width: 100%;
    height: 250px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,215,0,0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Simulate a map texture pattern */
    background-image: 
        radial-gradient(rgba(255,215,0,0.1) 1px, transparent 1px),
        radial-gradient(rgba(255,215,0,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

.map-overlay {
    text-align: center;
    background: rgba(10, 5, 20, 0.7);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.map-overlay p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

/* --- Glassmorphism Form Container (Right Side) --- */
.contact-form-container {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.contact-form-container h3 {
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
}

.glass-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex-grow: 1;
}

/* --- Floating Labels & Form Controls --- */
.floating-label-group {
    position: relative;
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: var(--color-text-light);
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

/* Focus and hover states for form inputs */
.form-control:focus, 
.form-control:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-primary-end);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

/* Remove default appearance for select */
select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

/* Floating Label Default State */
.floating-label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    transition: all 0.3s ease;
    font-family: 'Lato', sans-serif;
    background-color: transparent;
    padding: 0 0.3rem;
}

/* Floating Label specific to Textarea */
textarea.form-control ~ .floating-label {
    top: 1.2rem;
    transform: translateY(0);
}

/* Floating Label - Active State (Focus or when input is not empty/placeholder-shown) */
.form-control:focus ~ .floating-label,
.form-control:not(:placeholder-shown) ~ .floating-label,
select.form-control:focus ~ .floating-label,
select.form-control:valid ~ .floating-label,
select.form-control.has-value ~ .floating-label {
    top: -0.6rem;
    left: 0.8rem;
    font-size: 0.8rem;
    color: var(--color-primary-end);
    background-color: var(--color-bg-dark); /* Using dark bg to hide input border behind label */
    border-radius: 3px;
    transform: translateY(0);
    z-index: 5;
}

/* Custom Select Dropdown Arrow */
.select-group {
    position: relative;
}

.select-arrow {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    color: var(--color-primary-end);
    pointer-events: none;
    font-size: 0.8rem;
}

/* Form Submit Button */
.submit-btn {
    margin-top: 1rem;
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 8px;
    letter-spacing: 1px;
}

/* Scrollbar styling for textarea */
textarea.form-control::-webkit-scrollbar {
    width: 6px;
}

textarea.form-control::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

textarea.form-control::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.5);
    border-radius: 3px;
}