/*============ Contact Page Styles ============*/

/* Contact Hero */
.contact-hero {
    padding-top: 8rem;
    padding-bottom: 3rem;
    background: linear-gradient(135deg, rgba(0, 75, 120, 0.05), rgba(14, 149, 148, 0.05));
}

.contact-hero__content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-hero__title {
    font-size: var(--h1-font-size);
    margin-bottom: var(--mb-1);
    color: var(--dark-color);
}

.contact-hero__description {
    font-size: 1.125rem;
    color: var(--text-color);
    line-height: 1.8;
}

/* Contact Section */
.contact {
    padding-top: 2rem;
}

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

/* Contact Info */
.contact__info {
    position: sticky;
    top: 6rem;
}

.contact__info-title {
    font-size: var(--h2-font-size);
    margin-bottom: var(--mb-1);
    color: var(--dark-color);
}

.contact__info-description {
    color: var(--text-color);
    margin-bottom: var(--mb-2-5);
    line-height: 1.7;
}

.contact__cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: var(--mb-3);
}

.contact__card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(248, 249, 250, 1), rgba(255, 255, 255, 0.9));
    border-radius: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.contact__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.contact__card:hover::before {
    transform: scaleX(1);
}

.contact__card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 75, 120, 0.2);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(248, 249, 250, 1));
}

.contact__card-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    color: var(--white-color);
    font-size: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0, 75, 120, 0.3);
}

.contact__card:hover .contact__card-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 6px 20px rgba(0, 75, 120, 0.4);
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

.contact__card-content {
    flex: 1;
}

.contact__card-title {
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-0-5);
    color: var(--dark-color);
}

.contact__card-text {
    color: var(--text-color);
    line-height: 1.6;
}

.contact__card-text a {
    color: var(--primary-color);
    font-weight: var(--font-medium);
    transition: var(--transition);
}

.contact__card-text a:hover {
    color: var(--secondary-color);
}

.contact__map {
    width: 100%;
    height: 300px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
    background: linear-gradient(135deg, rgba(0, 75, 120, 0.1), rgba(14, 149, 148, 0.1));
}

.contact__map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 1rem;
    display: block;
    min-height: 300px;
}

.contact__map-overlay {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 10;
}

.contact__map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    text-decoration: none;
    font-weight: var(--font-semi-bold);
    border-radius: 0.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    font-size: 0.9rem;
}

.contact__map-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white-color);
}

.contact__map-link i {
    font-size: 1rem;
}

/* Contact Form */
.contact__form-container {
    background-color: var(--white-color);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.contact__form-header {
    margin-bottom: var(--mb-2-5);
}

.contact__form-title {
    font-size: var(--h2-font-size);
    margin-bottom: var(--mb-0-5);
    color: var(--dark-color);
}

.contact__form-subtitle {
    color: var(--text-color);
    line-height: 1.7;
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form__label {
    font-weight: var(--font-semi-bold);
    color: var(--dark-color);
    font-size: var(--normal-font-size);
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 0.5rem;
    font-size: var(--normal-font-size);
    font-family: var(--body-font);
    color: var(--dark-color);
    transition: var(--transition);
    background-color: var(--white-color);
}

.form__input:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 75, 120, 0.1);
}

.form__input.error,
.form__textarea.error {
    border-color: #dc3545;
}

.form__radio-label.error .form__radio-custom {
    border-color: #dc3545;
}

.form__checkbox-input.error {
    border-color: #dc3545;
}

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

.form__row {
    display: flex;
    gap: 1rem;
}

.form__row--split {
    grid-template-columns: 2fr 1fr;
}

.form__row--split .form__group {
    flex: 1;
}

/* Radio Buttons */
.form__radio-group {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.form__radio-item {
    display: flex;
    align-items: center;
}

.form__radio {
    display: none;
}

.form__radio-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--text-color);
    font-weight: var(--font-regular);
}

.form__radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-color);
    border-radius: 50%;
    position: relative;
    transition: var(--transition);
}

.form__radio:checked + .form__radio-label .form__radio-custom {
    border-color: var(--primary-color);
}

.form__radio:checked + .form__radio-label .form__radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* Checkbox */
.form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form__checkbox-input {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.form__checkbox-label {
    color: var(--text-color);
    line-height: 1.6;
    cursor: pointer;
}

.form__checkbox-label a {
    color: var(--primary-color);
    font-weight: var(--font-medium);
    text-decoration: underline;
    transition: var(--transition);
}

.form__checkbox-label a:hover {
    color: var(--secondary-color);
}

.form__submit {
    margin-top: var(--mb-1);
    width: 100%;
    justify-content: center;
}

/* Form Success/Error Messages */
.form__message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: var(--mb-1-5);
    font-weight: var(--font-medium);
}

.form__message--success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form__message--error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/*============ Media Queries ============*/
@media screen and (max-width: 968px) {
    .contact__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact__info {
        position: static;
    }

    .contact__map {
        height: 250px;
    }

    .contact__form-container {
        padding: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .contact-hero {
        padding-top: 6rem;
    }

    .contact__form-container {
        padding: 1.5rem;
    }

    .form__row--split {
        flex-direction: column;
    }

    .form__row {
        flex-direction: column;
    }
}

@media screen and (max-width: 480px) {
    .contact__form-container {
        padding: 1rem;
    }

    .contact__card {
        flex-direction: column;
        text-align: center;
    }

    .contact__card-icon {
        margin: 0 auto;
    }
}

/*============ Snackbar ============*/
/* The snackbar - position it at the bottom and in the middle of the screen */
#snackbar {
    visibility: hidden;
    min-width: 250px;
    max-width: 90%;
    margin-left: -125px;
    background-color: darkred;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px 24px;
    position: fixed;
    z-index: 10000;
    left: 50%;
    bottom: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

#snackbar.success {
    background-color: var(--primary-color);
}

#snackbar.error {
    background-color: #d32f2f;
}

/* Show the snackbar when clicking on a button (class added with JavaScript) */
#snackbar.show {
    visibility: visible !important;
    -webkit-animation: snackbarFadeIn 0.5s, snackbarFadeOut 0.5s 2.5s;
    animation: snackbarFadeIn 0.5s, snackbarFadeOut 0.5s 2.5s;
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes snackbarFadeIn {
    from {
        bottom: 0;
        opacity: 0;
    }
    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes snackbarFadeIn {
    from {
        bottom: 0;
        opacity: 0;
    }
    to {
        bottom: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes snackbarFadeOut {
    from {
        bottom: 30px;
        opacity: 1;
    }
    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes snackbarFadeOut {
    from {
        bottom: 30px;
        opacity: 1;
    }
    to {
        bottom: 0;
        opacity: 0;
    }
}

@media screen and (max-width: 480px) {
    #snackbar {
        min-width: calc(100% - 2rem);
        max-width: calc(100% - 2rem);
        margin-left: 0;
        left: 1rem;
        right: 1rem;
    }
}

