/* ========================================
   KONTAKT SEKCE - REFACTORED
   ======================================== */

/* Override old absolute positioning */
.autoworks-home .container-21 {
    position: relative !important;
    width: 100% !important;
    min-height: 827px !important;
    height: auto !important;
    background-color: #262a33 !important;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    padding: 60px 45px !important;
    max-width: none !important;
    margin: 0 !important;
    overflow: visible !important;
    align-self: stretch !important;
    box-sizing: border-box !important;
}

/* Inner wrapper pro dva sloupce */
.autoworks-home .contact-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    width: 100% !important;
}

/* LEFT COLUMN - Background Image + Content */
.autoworks-home .contact-left {
    position: relative;
    flex: 1 1 50%;
    min-width: 0;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.autoworks-home .contact-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.autoworks-home .contact-bg-image .image-3 {
    position: absolute !important;
    top: 128px !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 1225px !important;
    height: auto !important;
    min-height: 831px !important;
    object-fit: cover !important;
    object-position: left center !important;
    opacity: 0.3 !important;
}

.autoworks-home .contact-content {
    position: relative;
    z-index: 2;
    padding: 0;
    width: 100%;
    max-width: 650px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Heading */
.autoworks-home .contact-content .text-wrapper-34 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    font-family: "Oswald", Helvetica !important;
    font-weight: 700 !important;
    color: #dee1e6 !important;
    font-size: 60px !important;
    text-align: left !important;
    letter-spacing: 0 !important;
    line-height: 60px !important;
    white-space: normal !important;
    margin: 0 !important;
}

/* Intro text */
.autoworks-home .contact-content .text-wrapper-35 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 512px !important;
    font-family: "Open Sans", Helvetica !important;
    font-weight: 400 !important;
    color: #bdc1ca !important;
    font-size: 18px !important;
    letter-spacing: 0 !important;
    line-height: 28px !important;
    margin: 0 !important;
}

/* Contact info container */
.autoworks-home .contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 8px;
}

.autoworks-home .contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.autoworks-home .contact-item .phone,
.autoworks-home .contact-item .mail {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0 !important;
}

.autoworks-home .contact-item .text-wrapper-36,
.autoworks-home .contact-item .text-wrapper-37 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    font-family: "Oswald", Helvetica !important;
    font-weight: 500 !important;
    color: #f3f4f6 !important;
    font-size: 20px !important;
    letter-spacing: 0 !important;
    line-height: 28px !important;
    white-space: nowrap !important;
    text-decoration: none !important;
}

.autoworks-home .contact-item .text-wrapper-36:hover,
.autoworks-home .contact-item .text-wrapper-37:hover {
    color: #e71d36;
    transition: color 0.3s ease;
}

/* Company info heading */
.autoworks-home .contact-content .text-wrapper-38 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    font-family: "Oswald", Helvetica !important;
    font-weight: 600 !important;
    color: #e71d36 !important;
    font-size: 30px !important;
    letter-spacing: 0 !important;
    line-height: 36px !important;
    white-space: normal !important;
    margin: 16px 0 0 0 !important;
}

/* Company info container */
.autoworks-home .company-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.autoworks-home .company-info .text-wrapper-39,
.autoworks-home .company-info .text-wrapper-40,
.autoworks-home .company-info .text-wrapper-41,
.autoworks-home .company-info .text-wrapper-42 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    font-family: "Oswald", Helvetica !important;
    font-weight: 400 !important;
    color: #f3f4f6 !important;
    font-size: 20px !important;
    letter-spacing: 0 !important;
    line-height: 28px !important;
    white-space: normal !important;
    margin: 0 !important;
    font-style: normal !important;
}

.autoworks-home .company-info .text-wrapper-39 {
    font-weight: 500;
}

.autoworks-home .company-info .text-wrapper-42 {
    font-style: normal;
}

/* QR Codes Section - pod oba sloupce */
.autoworks-home .container-21 .qr-codes {
    display: flex;
    gap: 250px;
    margin-top: 60px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.autoworks-home .qr-card {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    background-color: #1e2128;
    border: 1px solid #565d6d;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.autoworks-home .qr-card:hover {
    border-color: #e71d36;
    transform: translateY(-5px);
}

.autoworks-home .qr-title {
    font-family: "Oswald", Helvetica;
    font-weight: 600;
    font-size: 18px;
    color: #f3f4f6;
    margin: 0;
    text-align: center;
}

.autoworks-home .qr-code-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 12px;
}

.autoworks-home .qr-code {
    width: 100%;
    height: auto;
    max-width: 200px;
    display: block;
}

.autoworks-home .qr-description {
    font-family: "Open Sans", Helvetica;
    font-size: 12px;
    color: #bdc1ca;
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

/* RIGHT COLUMN - Form */
.autoworks-home .container-22 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 586px !important;
    min-width: 400px !important;
    max-width: 586px !important;
    height: auto !important;
    min-height: 562px !important;
    background-color: #1e2128 !important;
    border-radius: 16px !important;
    border: 1px solid !important;
    border-color: #565d6d !important;
    box-shadow: 0px 0px 0px transparent, 0px 1px 2px #0000000d !important;
    padding: 32px !important;
    margin: 0 !important;
    flex: 0 0 586px !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Form heading */
.autoworks-home .container-22 .text-wrapper-43 {
    position: relative;
    top: auto;
    left: auto;
    font-family: "Oswald", Helvetica;
    font-weight: 600;
    color: #f3f4f6;
    font-size: 30px;
    letter-spacing: 0;
    line-height: 36px;
    white-space: normal;
    margin: 0 0 24px 0;
}

/* Form container */
.autoworks-home .container-22 form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Form row for Email and Phone side by side */
.autoworks-home .form-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.autoworks-home .form-row .textbox-2,
.autoworks-home .form-row .textbox-3 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    flex: 1 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 76px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 9px !important;
}

/* Form fields */
.autoworks-home .container-22 .textbox,
.autoworks-home .container-22 .textbox-2,
.autoworks-home .container-22 .textbox-3 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 76px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 9px !important;
}

.autoworks-home .text-wrapper-44,
.autoworks-home .text-wrapper-46,
.autoworks-home .text-wrapper-51 {
    font-family: "Open Sans", Helvetica;
    font-weight: 400;
    color: #bdc1ca;
    font-size: 12px;
    letter-spacing: 0;
    line-height: 20px;
    white-space: nowrap;
    margin: 0;
}

.autoworks-home .container-22 .textfield {
    display: flex !important;
    align-items: center !important;
    background-color: #000000 !important;
    border-radius: 6px !important;
    border: 1px solid !important;
    border-color: #323743 !important;
    min-height: 47px !important;
    padding: 0 12px !important;
    margin: 0 !important;
}

.autoworks-home .text-wrapper-45,
.autoworks-home .text-wrapper-47,
.autoworks-home .text-wrapper-52 {
    width: 100% !important;
    height: auto !important;
    min-height: 22px !important;
    font-family: "Open Sans", Helvetica !important;
    font-weight: 400 !important;
    color: #ffffff !important;
    font-size: 14px !important;
    letter-spacing: 0 !important;
    line-height: 22px !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    padding: 12px 0 !important;
    margin: 0 !important;
}

.autoworks-home .text-wrapper-45::placeholder,
.autoworks-home .text-wrapper-47::placeholder,
.autoworks-home .text-wrapper-52::placeholder {
    color: #565d6d !important;
}

/* Textarea */
.autoworks-home .container-22 .textarea {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 162px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 9px !important;
}

.autoworks-home .text-wrapper-48 {
    font-family: "Open Sans", Helvetica;
    font-weight: 400;
    color: #bdc1ca;
    font-size: 12px;
    letter-spacing: 0;
    line-height: 20px;
    white-space: nowrap;
    margin: 0;
}

.autoworks-home .container-22 .textfield-2 {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    background-color: #000000 !important;
    border-radius: 6px !important;
    border: 1px solid !important;
    border-color: #323743 !important;
    min-height: 120px !important;
    padding: 12px !important;
    margin: 0 !important;
}

.autoworks-home .text-wrapper-49 {
    width: 100% !important;
    height: 100% !important;
    min-height: 96px !important;
    font-family: "Open Sans", Helvetica !important;
    font-weight: 400 !important;
    color: #ffffff !important;
    font-size: 14px !important;
    letter-spacing: 0 !important;
    line-height: 22px !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    resize: vertical !important;
    margin: 0 !important;
    padding: 0 !important;
}

.autoworks-home .text-wrapper-49::placeholder {
    color: #565d6d !important;
}

.autoworks-home .resizing-handle {
    width: 12px;
    height: 12px;
    margin-top: auto;
    flex-shrink: 0;
}

/* Submit button */
.autoworks-home .container-22 .button-2 {
    all: unset !important;
    box-sizing: border-box !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #e71d36 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    border: 0px none !important;
    cursor: pointer !important;
    margin-top: 4px !important;
    transition: background-color 0.3s ease !important;
}

.autoworks-home .button-2:hover {
    background-color: #c9182b;
}

.autoworks-home .button-2:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.autoworks-home .text-wrapper-50 {
    height: 30px;
    font-family: "Oswald", Helvetica;
    font-weight: 700;
    color: #ffffff;
    font-size: 20px;
    text-align: center;
    letter-spacing: 0;
    line-height: 30px;
    white-space: nowrap;
}

/* Status message */
.autoworks-home .status-msg {
    margin-top: 16px;
    font-family: "Open Sans", Helvetica;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0;
    line-height: 24px;
    text-align: left;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1400px) {
    .autoworks-home .contact-content {
        padding: 0;
        max-width: 600px;
    }

    .autoworks-home .container-22 {
        margin: 0;
        flex: 0 0 586px !important;
    }
}

@media (max-width: 1024px) {
    .autoworks-home .container-21 {
        padding: 48px 20px !important;
    }

    .autoworks-home .contact-wrapper {
        flex-direction: column !important;
        flex-wrap: wrap !important;
    }

    .autoworks-home .contact-left {
        flex: 1 1 100% !important;
        min-width: 100% !important;
        min-height: 600px;
    }

    .autoworks-home .contact-bg-image .image-3 {
        width: 100%;
        max-width: none;
        object-position: center;
    }

    .autoworks-home .contact-content {
        padding: 0;
        max-width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .autoworks-home .contact-content .text-wrapper-34 {
        text-align: center !important;
    }

    .autoworks-home .contact-content .text-wrapper-35 {
        text-align: center !important;
        max-width: 600px;
    }

    .autoworks-home .contact-info {
        align-items: center;
    }

    .autoworks-home .contact-content .text-wrapper-38 {
        text-align: center !important;
    }

    .autoworks-home .company-info {
        align-items: center;
        text-align: center;
    }

    .autoworks-home .container-22 {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 586px !important;
        margin: 0 auto !important;
        padding: 32px !important;
    }
}

@media (max-width: 768px) {
    .autoworks-home .container-21 {
        min-height: auto;
        padding: 32px 20px !important;
    }

    .autoworks-home .container-21 .qr-codes {
        justify-content: center;
        gap: 20px;
    }

    .autoworks-home .qr-card {
        max-width: 220px;
    }

    .autoworks-home .contact-left {
        min-height: 500px;
    }

    .autoworks-home .contact-content {
        padding: 40px 24px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .autoworks-home .contact-content .text-wrapper-34 {
        font-size: 40px;
        line-height: 48px;
        text-align: center !important;
    }

    .autoworks-home .contact-content .text-wrapper-35 {
        font-size: 16px;
        line-height: 24px;
        text-align: center !important;
        max-width: 600px;
    }

    .autoworks-home .contact-info {
        align-items: center;
    }

    .autoworks-home .contact-content .text-wrapper-38 {
        font-size: 24px;
        line-height: 32px;
        text-align: center !important;
    }

    .autoworks-home .company-info {
        align-items: center;
        text-align: center;
    }

    .autoworks-home .company-info .text-wrapper-39,
    .autoworks-home .company-info .text-wrapper-40,
    .autoworks-home .company-info .text-wrapper-41,
    .autoworks-home .company-info .text-wrapper-42 {
        font-size: 16px;
        line-height: 24px;
        text-align: center;
    }

    .autoworks-home .contact-item .text-wrapper-36,
    .autoworks-home .contact-item .text-wrapper-37 {
        font-size: 18px;
    }

    .autoworks-home .container-22 {
        width: calc(100% - 48px) !important;
        max-width: none !important;
        margin: 0 auto 40px auto !important;
        padding: 24px !important;
        min-width: auto !important;
    }

    .autoworks-home .container-22 .text-wrapper-43 {
        font-size: 24px;
        line-height: 32px;
    }

    .autoworks-home .form-row {
        flex-direction: column;
        gap: 20px;
    }

    .autoworks-home .form-row .textbox-2,
    .autoworks-home .form-row .textbox-3 {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .autoworks-home .container-21 {
        padding: 32px 20px !important;
    }

    .autoworks-home .contact-content {
        padding: 32px 20px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .autoworks-home .qr-codes {
        flex-direction: column;
        align-items: center;
    }

    .autoworks-home .qr-card {
        max-width: 100%;
        width: 100%;
    }

    .autoworks-home .contact-content .text-wrapper-34 {
        font-size: 32px;
        line-height: 40px;
        text-align: center !important;
    }

    .autoworks-home .contact-content .text-wrapper-35 {
        text-align: center !important;
    }

    .autoworks-home .contact-content .text-wrapper-38 {
        text-align: center !important;
    }

    .autoworks-home .company-info {
        text-align: center;
    }

    .autoworks-home .container-22 {
        width: calc(100% - 40px) !important;
        max-width: none !important;
        margin: 0 auto 32px auto !important;
        padding: 20px !important;
    }
}
