/* Contact page specific styles */
:root {
    --primary-color: #4361ee;
    --primary-light: #3f37c9;
    --text-color: #2b2d42;
    --text-light: #6b7280;
    --bg-light: #ffffff;
    --bg-color: #f8f9fa;
    --border-color: #e5e7eb;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Contact methods grid */
.contact-methods__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-method {
    background: white;
    padding: 30px 25px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(67, 97, 238, 0.15);
}

.contact-method__icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-method__title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
}

.contact-method__text {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.contact-method__action {
    margin-top: auto;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn--small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* Contacts list styles */
.contacts__list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 800px;
}

.contact-text {
    color: var(--text-color);
    max-width: 800px;
    margin: 28px auto 0;
    padding: 16px 20px;
    border-left: 3px solid var(--primary-color);
    background: rgba(67, 97, 238, 0.03);
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.6;
}

.contacts__item {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1rem;
    color: var(--text-color);
    position: relative;
    padding-left: 30px;
}

.contacts__item:last-child {
    border-bottom: none;
}

.contacts__item::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    top: 1.1em;
    transform: translateY(-50%);
    line-height: 1;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .contact-methods__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .contact-methods__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-method {
        padding: 25px 20px;
        margin: 0 10px;
    }

    .contact-method__title {
        font-size: 1.2rem;
    }

    .contact-method__text {
        font-size: 0.95rem;
    }

    .contacts__item {
        padding: 12px 0 12px 25px;
        font-size: 1rem;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 30px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .contact-method {
        padding: 20px 15px;
        margin: 0 5px;
    }

    .contact-method__title {
        font-size: 1.1rem;
    }

    .contact-method__icon {
        font-size: 2.5rem;
    }

    .contacts__item {
        padding: 10px 0 10px 20px;
        font-size: 0.95rem;
    }

    .container {
        padding: 0 12px;
    }

    .btn--small {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* Make inner hero more compact on small screens only on contacts page */
@media (max-width: 480px) {
    .hero.hero--inner {
        min-height: 0;
        padding: 72px 0 40px;
    }
}

/* Hero background safety: keep the picture hero crisp (no tiling issues) */
.hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Tablet layout tweak for contact methods:
   - two blocks (phone + email) on the first row
   - contact form on the second row spanning full width and centered */
@media (min-width: 768px) and (max-width: 1199px) {
    .contact-methods__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-methods__grid .contact-method:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ===== Contact form ===== */
.contact-form-section .contact-text {
    margin-top: 18px;
}

.contact-form {
    margin: 28px auto 0;
    max-width: 860px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 24px 22px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.contact-form__label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.contact-form__input,
.contact-form__textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(107, 114, 128, 0.28);
    background: #ffffff;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.35;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.contact-form__textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
    color: rgba(107, 114, 128, 0.75);
}

.contact-form__input:focus,
.contact-form__textarea:focus {
    outline: none;
    border-color: rgba(67, 97, 238, 0.85);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.14);
}

.contact-form__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form__actions {
    margin-top: 6px;
}

@media (min-width: 768px) {
    .contact-form {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        padding: 28px 26px;
    }

    .contact-form__label--full {
        grid-column: 1 / -1;
    }

    .contact-form__actions {
        grid-column: 1 / -1;
    }
}
