/* --- Header & Navigation --- */
/* Mobile menu styles are now in index.css */

/* Button styles */
.primary-nav a.button-style {
    background-color: var(--accent);
    color: white;
    padding: 0.5rem 1rem;
    margin-left: 0.5rem;
    transition: all 0.2s ease;
}

.primary-nav a.button-style:hover {
    background-color: var(--accent-2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* --- Hero Section --- */

.hero {
    height: auto
}

.hero-title {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* --- Contact Section --- */

.contact {
    display: flex;
    justify-content: center;
    margin: 2rem 1rem;
}

.contact h2 {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    margin-bottom: 0;
    font-weight: 700;
}

.container-contact {
    box-sizing: border-box;
    color: var(--text);
    height: 100%;
    line-height: 1.8;
    font-size: 1.2rem;
    border-radius: 0.75rem;
    text-align: center;
    border: 1px solid var(--border-color);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    width: 100%;
    max-width: 38rem; /* Adjusted size */
    transition: all 0.3s ease-in-out;
}

form {
    padding: 2.5rem;
    padding-bottom: 0;
}

#formContent {
    display: flex;
    flex-direction: column;
    gap: 2.5rem; /* Adjusted gap for better spacing */
}

.full_name {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.mailing-info {
  padding: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  margin: 0 2.5rem;
}

.mailing-info h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.mailing-info p {
    line-height: 1.7;
    color: var(--text-muted);
}

.input-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

input, textarea, button, select, option {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text);
}

input[type="text"],
input[type="email"],
textarea {
    box-sizing: border-box; /* Add this line */
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

button[type="submit"] {
    display: flex;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    width: 100%;
    justify-content: center;
    border: none;
    background-color: var(--accent);
    color: white;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
}

/* ===== CTA band ===== */
.cta-row { 
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cta-title {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-muted);
}

.cta-text {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.cta-block {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem;
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    height: 100%;
    box-sizing: border-box;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.cta-block::after {
    content: "";
    position: absolute;
    inset: auto -20% -50% -20%;
    height: 140px;
    background: radial-gradient(60% 60% at 50% 50%, rgba(255,255,255,.07), transparent 60%);
    opacity: 0;
    transition: opacity .35s ease, transform .35s ease;
    transform: translateY(10px);
    z-index: -1;
    pointer-events: none;
}

.cta-block:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,.12);
    box-shadow: 0 16px 36px rgba(0,0,0,.28);
}

.cta-block:hover::after { opacity: 1; transform: translateY(0); }

.cta-block h3 { 
    color: #fff; 
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.cta-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cta-block p {
    margin-bottom: 1.25rem;
    flex-grow: 1;
    color: var(--text-muted);
}

.cta-wrapper {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cta-wrapper .btn {
    width: auto;
    min-width: 120px;
    padding: 0.75rem 1.5rem;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
}

/* Medium screens (tablets, 45rem and up) */
@media only screen and (min-width: 45rem) {
    .cta-row {
        flex-direction: row;
        align-items: stretch;
    }
    
    .cta-block {
        flex: 1;
        min-width: 0;
    }
    
    .cta-wrapper {
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-text {
        margin: 0;
        flex: 1;
        min-width: 0;
    }
    
    .cta-wrapper .btn {
        margin: 0;
        flex: 0 0 auto;
    }
}

/* --- Responsive Design --- */

/* Medium screens (tablets, 820px and up) */
@media only screen and (min-width: 820px) {
    .menu-toggle {
        display: none;
    }
    
    .primary-nav {
        display: flex;
        position: static;
        flex-direction: row;
        background: transparent;
        padding: 0;
        width: auto;
    }

    /* Contact Section */
    .container-contact {
        max-width: 46rem; /* Adjusted size */
    }
    
    .contact h2 {
        margin-bottom: clamp(1.5rem, 3vw, 2rem);
    }
    
    input, textarea {
        padding: clamp(0.75rem, 1.5vw, 1rem);
        border-radius: 0.5rem;
    }

    .full_name {
        display: flex;
        flex-direction: row;
        gap: 1.5rem;
    }

    .full_name > .input-field {
        width: calc(50% - 0.75rem);
    }

    .cta-row {
        flex-direction: row;
    }

    .cta-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .cta-block p {
        margin-bottom: 0;
        align-self: center;
    }
}

/* Large screens (desktops, 65rem and up) */
@media only screen and (min-width: 65rem) {

    .container-contact {
        max-width: 55rem; /* Adjusted size */
    }
    
    .contact h2 {
        font-size: 2.25rem;
        margin-bottom: 2rem;
    }
    
    form {
        gap: 2.25rem;
    }
    
    .input-field, .user-message {
        gap: 0.25rem;
    }
    
    input, textarea {
        padding: 1rem;
        font-size: 1.1rem;
        border-radius: 0.6rem;
    }
    
    .btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    .cta-wrapper {
        flex-direction: row;
        gap: 1rem;
    }
}