/**
 * VIOZZO CONTACT PAGE - Modern Theme Design
 */

/* Bootstrap Grid System */
.viozzo-contact-info-cards-wrapper .row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-right: -15px !important;
    margin-left: -15px !important;
    align-items: stretch !important;
}

.viozzo-contact-info-cards-wrapper .row > * {
    position: relative !important;
    padding-right: 15px !important;
    padding-left: 15px !important;
    display: flex !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.viozzo-contact-info-cards-wrapper .col-md-6 {
    flex: 0 0 auto !important;
    width: 50% !important;
    max-width: 50% !important;
}

.viozzo-contact-info-cards-wrapper .col-xl-4 {
    flex: 0 0 auto !important;
    width: 33.333333% !important;
    max-width: 33.333333% !important;
}

.viozzo-contact-info-cards-wrapper .gy-4 > * {
    margin-top: 16px !important;
    margin-bottom: 16px !important;
}

/* Address Items - Modern Card Design */
.address-items {
    --box-w: 0px;
    height: 100%;
    width: 100%;
    display: flex;
    gap: 20px;
    align-items: center;
    background-color: #ffffff;
    padding: 25px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    z-index: 1;
    border: 2px solid #E0E6F5;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.08);
    transition: all 0.3s ease;
}

.address-items:hover {
    border-color: #007bff;
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.15);
    transform: translateY(-5px);
}

@media screen and (max-width: 1399px) {
    .address-items {
        --box-w: 0px;
    }
}

.address-items__icon {
    height: 80px;
    width: 80px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 50%;
    display: grid;
    place-content: center;
    flex-shrink: 0;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

@media screen and (max-width: 1399px) {
    .address-items__icon {
        height: 70px;
        width: 70px;
    }
}

.address-items__icon svg {
    width: 32px !important;
    height: 32px !important;
}

.address-items__shape {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    z-index: -1;
    display: none;
}

.address-items__shape .box {
    width: var(--box-w);
    background-color: #007bff;
}

.address-items__shape .image {
    background: linear-gradient(135deg, #007bff 0%, rgba(0, 123, 255, 0.7) 100%);
    width: 60px;
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.address-items__title {
    color: #222222;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 700;
}

.address-items__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.address-items__info {
    font-size: 15px;
    font-family: inherit;
    color: #666666;
    line-height: 1.6;
}

a.address-items__info {
    text-decoration: none;
    color: #007bff;
    font-weight: 500;
}

a.address-items__info:hover,
a.address-items__info:focus {
    color: #0056b3;
    text-decoration: underline;
}

.address-items__info.d-block {
    display: block;
    margin-top: 4px;
}

/* Contact Form - Modern Design */
.viozzo-contact-form-wrapper {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    border: 2px solid #E0E6F5;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.08);
}

.contact-heading {
    margin-bottom: 35px;
    text-align: left;
}

.contact-heading__title {
    color: #222222 !important;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.contact-heading__desc {
    font-size: 16px;
    font-weight: 400;
    color: #666666;
    line-height: 1.7;
    max-width: 600px;
}

.viozzo-contact-form .row {
    margin-bottom: 0;
}

.form--label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #222222;
    font-size: 15px;
    letter-spacing: 0.2px;
}

.form--label.required::after {
    content: ' *';
    color: #dc3545;
    margin-left: 2px;
    font-weight: 700;
}

.form--control-wrapper {
    position: relative;
    margin-bottom: 0;
}

.form-control,
.form--control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #E0E6F5;
    border-radius: 12px;
    font-size: 15px;
    color: #222222;
    background-color: #F9FBFF;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.form-control::placeholder,
.form--control::placeholder {
    color: #999999;
    opacity: 1;
}

.form-control:hover,
.form--control:hover {
    border-color: #B8CAFF;
    background-color: #ffffff;
}

.form-control:focus,
.form--control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.12);
    background-color: #ffffff;
}

textarea.form--control {
    resize: vertical;
    min-height: 180px;
    font-family: inherit;
    line-height: 1.7;
}

.btn--base,
.contact-form-submit-btn {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    margin-top: 10px;
    letter-spacing: 0.3px;
}

.btn--base:hover,
.contact-form-submit-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.btn--base:active,
.contact-form-submit-btn:active {
    transform: translateY(0);
}

.btn--base:disabled,
.contact-form-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.form-response {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-weight: 500;
}

.form-response.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border: 2px solid #28a745;
    color: #28a745;
}

.form-response.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border: 2px solid #dc3545;
    color: #dc3545;
}

/* Maps */
.maps-iframe {
    width: 100%;
    height: 450px;
    border-radius: 16px;
    display: block;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.08);
}

/* Row Spacing */
.row.gy-3 > * {
    margin-top: 12px;
    margin-bottom: 12px;
}

.viozzo-contact-form .row.gy-3 > * {
    margin-top: 10px;
    margin-bottom: 10px;
    padding-bottom: 15px;
}

/* Responsive */
@media (max-width: 1199px) {
    .viozzo-contact-info-cards-wrapper .col-xl-4 {
        flex: 0 0 auto !important;
        width: 50% !important;
        max-width: 50% !important;
    }
}

@media (max-width: 991px) {
    .maps-iframe {
        height: 400px;
        margin-bottom: 30px;
    }

    .contact-heading__title {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    /* Address kartı tam genişlik */
    .viozzo-contact-info-cards-wrapper .col-md-6:nth-child(1),
    .viozzo-contact-info-cards-wrapper .col-xl-4:nth-child(1) {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Email ve Phone yan yana 50% - TAM EŞİT */
    .viozzo-contact-info-cards-wrapper .col-md-6:nth-child(2),
    .viozzo-contact-info-cards-wrapper .col-xl-4:nth-child(2),
    .viozzo-contact-info-cards-wrapper .col-md-6:nth-child(3),
    .viozzo-contact-info-cards-wrapper .col-xl-4:nth-child(3) {
        flex: 0 0 auto !important;
        width: 50% !important;
        max-width: 50% !important;
    }

    .address-items {
        margin-bottom: 16px;
        padding: 20px;
    }

    .maps-iframe {
        height: 300px;
        border-radius: 12px;
    }

    .viozzo-contact-form-wrapper {
        padding: 30px 25px;
    }

    .contact-heading__title {
        font-size: 26px;
    }

    .contact-heading__desc {
        font-size: 15px;
    }

    .form--label {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .form-control,
    .form--control {
        padding: 14px 16px;
        font-size: 15px;
    }

    textarea.form--control {
        min-height: 160px;
    }

    .form--control-wrapper {
        margin-bottom: 0;
    }

    .btn--base,
    .contact-form-submit-btn {
        padding: 16px 32px;
        font-size: 16px;
    }
}

@media (max-width: 575px) {
    /* Address kartı tam genişlik */
    .viozzo-contact-info-cards-wrapper .col-md-6:nth-child(1),
    .viozzo-contact-info-cards-wrapper .col-xl-4:nth-child(1) {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Email ve Phone yan yana 50% - TAM EŞİT */
    .viozzo-contact-info-cards-wrapper .col-md-6:nth-child(2),
    .viozzo-contact-info-cards-wrapper .col-xl-4:nth-child(2),
    .viozzo-contact-info-cards-wrapper .col-md-6:nth-child(3),
    .viozzo-contact-info-cards-wrapper .col-xl-4:nth-child(3) {
        flex: 0 0 auto !important;
        width: 50% !important;
        max-width: 50% !important;
    }

    .address-items {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px 15px;
    }

    .address-items__icon {
        width: 70px;
        height: 70px;
    }

    .address-items__icon svg {
        width: 28px !important;
        height: 28px !important;
    }

    .address-items__content {
        width: 100%;
    }

    .viozzo-contact-form-wrapper {
        padding: 25px 20px;
        border-radius: 12px;
    }

    .contact-heading {
        margin-bottom: 25px;
    }

    .contact-heading__title {
        font-size: 24px;
    }

    .contact-heading__desc {
        font-size: 14px;
    }

    .form--label {
        font-size: 13px;
    }

    .form-control,
    .form--control {
        padding: 13px 15px;
        font-size: 14px;
        border-radius: 10px;
    }

    textarea.form--control {
        min-height: 140px;
    }

    .btn--base,
    .contact-form-submit-btn {
        padding: 15px 28px;
        font-size: 15px;
        border-radius: 10px;
    }
}

/* Widget Containers */
.elementor-widget-viozzo_contact_info_cards,
.elementor-widget-viozzo_contact_form,
.elementor-widget-viozzo_contact_map {
    width: 100%;
    max-width: 100%;
}

.elementor-widget-viozzo_contact_info_cards .elementor-widget-container,
.elementor-widget-viozzo_contact_form .elementor-widget-container,
.elementor-widget-viozzo_contact_map .elementor-widget-container {
    padding: 0;
    margin: 0;
}
