/*
 Theme Name: NovaRide Child
 Template: novaride
 Description: Child theme dla NovaRide
 Version: 1.0
*/
/* ========================================
   NEW FORM THEME - CF7 Custom Styling
   ======================================== */

/* Reset i kontener główny */
.new-form-theme {
    font-family: inherit;
    box-sizing: border-box;
}

.new-form-theme *,
.new-form-theme *::before,
.new-form-theme *::after {
    box-sizing: border-box;
}

.new-form-wrapper {
    background: #ffffff;
    border-radius: 24px;
    padding: 48px 56px;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.06);
    max-width: 800px;
    margin: 0 auto;
}

/* ========================================
   Nagłówek z gradientem
   ======================================== */
.new-form-row:first-child p {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 32px 0;
    line-height: 1.2;
}

.new-form-row:first-child strong {
    font-weight: 700;
}

/* Gradient na tekście */
.new-form-row:first-child .gradient {
    background: linear-gradient(90deg, #000 0%, #FFB31A 60%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tekst "Cześć " przed gradientem */
.new-form-row:first-child p {
    color: #1a1a2e;
}

/* ========================================
   Wiersze formularza
   ======================================== */
.new-form-row {
    margin-bottom: 20px;
}

.new-form-row:last-child {
    margin-bottom: 0;
    margin-top: 28px;
}

.new-form-row p {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a2e;
}

/* ========================================
   Labele
   ======================================== */
.new-form-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-weight: 400;
    color: #1a1a2e;
    font-size: 20px!important;
    white-space: nowrap;
}

/* ========================================
   Inputy
   ======================================== */
.new-form-row .wpcf7-form-control-wrap {
    display: inline-block;
    min-width: 160px;
}

.new-form-row input[type="text"],
.new-form-row input[type="email"],
.new-form-row input[type="tel"] {
    background: transparent;
    border: 2px solid #d0dbe2;
    border-radius: 16px;
    padding: 10px 18px;
    font-size: 15px;
    color: #1a1a2e;
    outline: none;
    transition: all 0.2s ease;
    width: auto !important;
    min-width: 140px;
    max-width: 200px;
    width: 100%;
}

/* Placeholder */
.new-form-row input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* Focus state */
.new-form-row input[type="text"]:focus,
.new-form-row input[type="email"]:focus,
.new-form-row input[type="tel"]:focus {
    background: transparent;
    box-shadow: 0 0 0 2px rgba(0, 217, 165, 0.2);
    border: 2px solid #ffb31a;

}

/* Szerokości dla konkretnych pól */
.new-form-row input[name="imie_nazwisko"] {
    min-width: 160px;
}

.new-form-row input[name="nazwa_firmy"] {
    min-width: 140px;
}

.new-form-row input[name="tresc_wiadomosci"] {
    min-width: 320px;
    flex: 1;
}

.new-form-row input[name="telefon"] {
    min-width: 160px;
}

.new-form-row input[name="email"] {
    min-width: 180px;
    width: auto !important;
}

/* ========================================
   Ostatni wiersz - checkbox i przycisk
   ======================================== */
.new-form-row:last-child p {
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* ========================================
   Checkbox
   ======================================== */
.new-form-row .wpcf7-acceptance {
    display: inline-flex;
    align-items: center;
}

.new-form-row .wpcf7-acceptance label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px !important;
    color: #6b7280;
}

.new-form-row .wpcf7-acceptance input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db!important;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.new-form-row .wpcf7-acceptance input[type="checkbox"]:checked {
    background: #FFB31A !important;
    border-color: #FFB31A !important;
}

.new-form-row .wpcf7-acceptance input[type="checkbox"]:checked::after {
    content: '';
    display: block;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin: 1px auto;
}

/* Link w polityce prywatności */
.new-form-row .wpcf7-list-item-label a {
    color: #00D9A5;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.new-form-row .wpcf7-list-item-label a:hover {
    color: #00c795;
}

/* ========================================
   Przycisk Submit
   ======================================== */
.new-form-row input[type="submit"].wpcf7-submit {
    background: #1a1a2e;
    color: #ffffff;
    border: none;
    border-radius: 16px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    /*padding-right: 48px;*/
}

.new-form-row input[type="submit"].wpcf7-submit:hover {
    background: #FFB31A;
    transform: translateY(-1px);
}

.new-form-row input[type="submit"].wpcf7-submit:active {
    transform: translateY(0);
}

/* Strzałka na przycisku */
.new-form-row input[type="submit"].wpcf7-submit::after {
    content: '→';
    position: absolute;
    right: 24px;
    font-size: 16px;
    transition: transform 0.2s ease;
}

.new-form-row input[type="submit"].wpcf7-submit:hover::after {
    transform: translateX(3px);
}

/* Spinner CF7 */
.new-form-row .wpcf7-spinner {
    margin-left: 12px;
}

/* ========================================
   Walidacja i komunikaty CF7
   ======================================== */
.new-form-theme .wpcf7-not-valid {
    border: 2px solid #ef4444 !important;
    background: #fef2f2 !important;
}

.new-form-theme .wpcf7-not-valid-tip {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.new-form-theme .wpcf7-response-output {
    margin: 20px 0 0 0;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
}
.new-form-theme span.wpcf7-list-item{
    margin-left: 0!important;
}
.new-form-theme .wpcf7-mail-sent-ok {
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
}

.new-form-theme .wpcf7-validation-errors,
.new-form-theme .wpcf7-spam-blocked {
    background: #fef2f2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

/* ========================================
   Kompatybilność z Elementorem
   ======================================== */
.elementor-widget-container .new-form-theme,
.elementor-element .new-form-theme {
    width: 100%;
}

.elementor-widget-container .new-form-wrapper,
.elementor-element .new-form-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* Reset stylów Elementora dla inputów */
.elementor-widget-container .new-form-row input,
.elementor-element .new-form-row input {
    box-shadow: none !important;
    /*border: none !important;*/
}

.elementor-widget-container .new-form-row input[type="submit"],
.elementor-element .new-form-row input[type="submit"] {
    width: auto !important;
}

@media screen and (max-width: 900px){
    .elementor-widget-container .new-form-row input, .elementor-element .new-form-row input{
        width: 100% !important;
        max-width: 100%!important;
    }
    .new-form-row .wpcf7-form-control-wrap{
        min-width: 100%!important;
        width: 100%!important;
    }
    .new-form-row p, .new-form-row label{
        flex-direction: column;
        align-items: baseline;
        width: 100%!important;
    }
    .new-form-row .wpcf7-acceptance label{
        display: inline-flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        flex-direction: row;
        font-size: 14px !important;
        color: #6b7280;
    }
    .new-form-row .wpcf7-acceptance input[type="checkbox"]{
        width: 20px !important;
    }
    .elementor-widget-container .new-form-row input[type="submit"], .elementor-element .new-form-row input[type="submit"]{
        width: 100%!important;
    }
    .new-form-theme {
        padding: 15px;
    }
    .elementor-widget-container .new-form-wrapper, .elementor-element .new-form-wrapper{
        padding: 25px;
    }
}