/* Custom Phone Calculator v2 Styles - Presne z pôvodného pluginu s prefixom v2- */

/* Elementor Widget Styles - jednoduchý text */

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Field validation styles */
.v2-custom-radio-input.error,
input.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.field-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* Disabled button styles */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.v2-custom-radio-input {
    display: none; 
}

.v2-custom-radio-label {
    display: inline-block;
    padding: 12px 16px;
    margin: 5px;
    border: 2px solid #28B0EA;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    background: white;
    color: #28B0EA;
    transition: all 0.3s ease;
    min-width: 120px;
}

.v2-custom-radio-input:checked + .v2-custom-radio-label {
    background-color: #28B0EA;
    color: white;
    border-color: #28B0EA;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 176, 234, 0.3);
}

/* Hover efekty pro tlačítka s borderem */
.v2-custom-radio-label:hover {
    background-color: #28B0EA;
    color: white;
    border-color: #28B0EA;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 176, 234, 0.3);
}

.v2-damage-button:hover {
    background-color: #28B0EA;
    color: white;
    border-color: #28B0EA;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 176, 234, 0.3);
}

.v2-damage-button:hover .v2-price-info {
    color: white;
}

.v2-price {
    display: block;
    font-size: 14px;
    font-weight: 400;
    margin-top: 5px;
}

.v2-q-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #051b33;
    font-weight: 400;
    margin-bottom: 10px;
    font-size: 18px;
}

.v2-selected-option {
    justify-content: space-between;
    color: rgb(40,176,234);
    font-weight: 600;
    text-decoration: underline;
    font-size: 14px;
}

.v2-question-container {
    margin-bottom: 30px;
}

.v2-damage-input-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.v2-damage-radio span {
    margin: 0 10px;
}

.v2-damage-radio input {
    top: 2px;
    position: relative;
}

/* Damage content styling */
.v2-damage-content {
    text-align: center;
}

.v2-damage-header {
    margin-bottom: 20px;
}

.v2-damage-header p {
    margin: 5px 0;
}

/* Damage buttons styling */
.v2-damage-buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.v2-damage-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid #28B0EA;
    border-radius: 8px;
    background: white;
    color: #28B0EA;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 200px;
}

/* Hover efekty pro complete button */
.v2-complete-button:hover {
    background-color: #28B0EA;
    color: white;
    border-color: #28B0EA;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 176, 234, 0.3);
}

.v2-damage-button-active {
    background: #28B0EA;
    color: white;
    border-radius: 8px;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 176, 234, 0.3);
}

.v2-price-info {
    font-size: 14px;
    font-weight: 600;
    color: #28B0EA;
    margin-left: 10px;
}

.v2-damage-button-active .v2-price-info {
    color: white;
}

.v2-damage-option-section {
    margin-top: 20px;
}

.v2-damage-input-row img {
    position: absolute;
    right: -17px;
    top: 6px;
    width: 14px;
}

.v2-damage-input-row span {
    position: relative;
}

span.v2-bullet-point {
    background: #28B0EA;
    color: white;
    padding: 5px;
    border-radius: 100%;
    width: 28px;
    height: 28px;
    display: inline-block;
    text-align: center;
    line-height: 17px;
    margin-right: 5px;
}

.v2-custom-radio-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.v2-q-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.v2-damage-option-section {
    width: 100%;
}

.v2-price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f5f5f5;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.v2-price-container h3 {
    flex: 1;
    padding-right: 30px;
    margin: 0;
}

.v2-popup-link {
    color: #28B0EA;
    margin-top: 10px;
}

.v2-complete-button {
    background: rgb(40,176,234);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    float: right;
    margin-top: 20px;
}


.v2-damage-input-row textarea {
    width: 300px;
    height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    resize: vertical;
}

/* Responzivní úpravy pre obrazovky menšie ako 1200px */
@media screen and (max-width: 1200px) {
    /* Jemné zmenšenie textov a elementov pre menšie obrazovky */
    .v2-q-header {
        font-size: 19px;
    }
    
    .v2-price-container h3 {
        font-size: 17px;
    }
    
    .v2-price-container h1 {
        font-size: 36px;
    }
    
    .v2-fixed-price-left h3 {
        font-size: 17px;
    }
    
    .v2-fixed-price-right h1 {
        font-size: 36px;
    }
    
    .v2-sell-option-header p {
        font-size: 15px;
    }
    
    /* Tlačítka Online/Osobně pod sebou už od 1200px */
    .v2-sell-option-buttons {
        flex-direction: column;
        max-width: 400px;
        gap: 15px;
    }
    
    .v2-sell-button {
        padding: 11px 14px;
        font-size: 13px;
        min-height: 58px;
        gap: 11px;
    }
    
    .v2-sell-text strong {
        font-size: 15px;
    }
    
    .v2-sell-description {
        font-size: 10px;
    }
    
    .v2-sell-icon {
        width: 19px;
        height: 19px;
    }
    
    .v2-custom-radio-label {
        font-size: 13px;
        padding: 9px 13px;
        min-width: 85px;
    }
    
    .v2-damage-button {
        padding: 9px 13px;
        font-size: 13px;
        min-width: 85px;
    }
    
    .v2-complete-button {
        padding: 11px 22px;
        font-size: 14px;
    }
    
    .v2-contact-form {
        padding: 22px;
    }
    
    .v2-contact-form h3 {
        font-size: 19px;
    }
    
    .v2-contact-form label {
        font-size: 14px;
    }
    
    .v2-contact-form input,
    .v2-contact-form textarea {
        font-size: 14px;
        padding: 9px 11px;
    }
    
    .v2-submit-button {
        padding: 11px 22px;
        font-size: 14px;
    }
    
    .v2-branch-pill {
        padding: 7px 13px;
        font-size: 13px;
    }
    
    /* Srovnanie veľkosti textu u vybraných tlačítok */
    .v2-price-info {
        font-size: 13px;
    }
    
    .v2-damage-button-active {
        font-size: 13px;
    }
    
    .v2-damage-button-active .v2-price-info {
        font-size: 13px;
    }
    
    /* Zmenšenie čísla výslednej čiastky */
    .v2-price-container h1 {
        font-size: 34px !important;
    }
    
    .v2-fixed-price-right h1 {
        font-size: 34px !important;
    }
}

@media screen and (max-width: 480px) {
    .v2-q-header {
        font-size: 14px;
        gap: 10px;
    }

    .v2-price-container {
        flex-direction: column;
        text-align: center;
    }

    .v2-price-container h3 {
        font-size: 14px;
        margin: 0;
    }

    .v2-price-container h1 {
        font-size: 20px !important;
    }
    
    .v2-damage-input-row {
        font-size: 14px;
    }

    .v2-damage-input-row span p {
        margin: 0;
    }

    .v2-custom-radio-label {
        font-size: 14px;
        padding: 10px 12px;
        min-width: 100px;
    }
    
    .v2-complete-button {
        width: 100%;
        float: none;
        margin-top: 15px;
    }
    
    .v2-damage-input-row textarea {
        width: 100%;
    }
}

/* Responzivní úpravy pre obrazovky menšie ako 992px */
@media screen and (max-width: 992px) {
    .v2-q-header {
        font-size: 16px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
        margin-bottom: 5px;
    }
    
    .v2-damage-input-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .v2-damage-radio {
        width: 100%;
        justify-content: space-between;
    }
    
    .v2-custom-radio-label {
        min-width: 100px;
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .v2-price-container h1 {
        font-size: 28px !important;
    }
    
    .v2-price-container h3 {
        font-size: 16px;
    }
    
    .v2-fixed-price-container {
        flex-direction: column;
        text-align: center;
    }
    
    .v2-fixed-price-left {
        padding-right: 0;
        margin-bottom: 15px;
    }
    
    .v2-price-container h3 {
        padding-right: 0;
        margin-bottom: 15px;
    }
    
    .v2-sell-option-buttons {
        max-width: 400px;
    }
    
    .v2-form-row {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .v2-contact-form {
        padding: 20px;
        margin-top: 20px;
    }
    
    .v2-submit-button {
        min-width: 200px;
        padding: 12px 25px;
        font-size: 14px;
    }
    
    /* Zmenšenie margin-top pre damage section */
    .v2-damage-option-section {
        margin-top: 10px;
    }
}


/* Fixná cena layout */
.v2-fixed-price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f5f5f5;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.v2-fixed-price-left {
    flex: 1;
    padding-right: 30px;
}

.v2-fixed-price-left h3 {
    margin-bottom: 4px;
}

.v2-fixed-price-left p {
    margin-top: 0;
}

.v2-fixed-price-right {
    flex-shrink: 0;
}

/* Responsive pre fixnú cenu */

/* Poznámky layout - vertikálne naskladané */
.v2-notes-content {
    text-align: center;
}

.v2-notes-header {
    margin-bottom: 20px;
}

.v2-notes-header p {
    margin: 5px 0;
}

/* Spôsob predaja layout */
.v2-sell-option-content {
    text-align: center;
}

.v2-sell-option-header {
    margin-bottom: 20px;
}

.v2-sell-option-header p {
    margin: 5px 0;
}

.v2-sell-option-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.v2-sell-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 12px 15px;
    border: 2px solid #28B0EA;
    border-radius: 12px;
    background: white;
    color: #28B0EA;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-height: 60px;
    gap: 12px;
    width: 100%;
    flex: 1;
    min-width: 0;
}



/* Footer pre error hlášky spôsobu predaja */
.v2-sell-option-footer {
    text-align: center;
    margin: 0;
    padding: 0;
}

.v2-sell-option-footer .sell-option-error {
    color: #dc3545;
    font-size: 14px;
    margin: 15px 0 0 0;
    padding: 0;
}

.v2-sell-button-active {
    background: #28B0EA;
    color: white;
}

.v2-sell-button-active .v2-sell-text strong {
    color: white;
}

.v2-sell-button-active .v2-sell-description {
    color: #f0f0f0;
}

.v2-sell-button-active .v2-sell-icon {
    color: white;
}

.v2-sell-button-active .v2-sell-icon svg {
    fill: white;
    width: 100%;
    height: 100%;
}

.v2-sell-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.v2-sell-icon svg {
    width: 100%;
    height: 100%;
}

/* Špecifické veľkosti pre ikony */
.v2-sell-button[data-option="online"] .v2-sell-icon {
    width: 18px;
    height: 18px;
}

.v2-sell-button[data-option="osobne"] .v2-sell-icon {
    width: 22px;
    height: 22px;
}

.v2-sell-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.v2-sell-text strong {
    font-size: 16px;
    margin-bottom: 2px;
}

.v2-sell-description {
    font-size: 10px;
    font-weight: 400;
    color: #28B0EA;
    text-align: left;
    line-height: 1.3;
}

/* Hover efekt pre popisný text v tlačítkách */
.v2-sell-button:hover .v2-sell-description {
    color: white;
}

/* Kontaktný formulár */
.v2-contact-form {
    margin-top: 30px;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 12px;
}

.v2-form {
    max-width: 600px;
    margin: 0 auto;
}

.v2-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.v2-form-group {
    display: flex;
    flex-direction: column;
}

.v2-form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    text-align: left;
}

.v2-form-group label::after {
    content: " *";
    color: #e74c3c;
}

.v2-form-group input {
    padding: 12px 15px;
    border: 1px solid #ddd !important;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.v2-form-group input:focus {
    outline: none;
    border-color: #28B0EA;
    box-shadow: 0 0 0 3px rgba(40, 176, 234, 0.1);
}

.v2-form-submit {
    text-align: center;
    margin-top: 25px;
    margin-left: 0 !important;
    display: flex;
    justify-content: center;
}

.v2-contact-form .v2-submit-button {
    background: rgb(40,176,234) !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    /* float: right !important; */
    margin-top: 0 !important;
    margin-left: 0 !important;
}

/* Hover efekty pro submit button */
.v2-contact-form .v2-submit-button:hover {
    background-color: #28B0EA;
    color: white;
    border-color: #28B0EA;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 176, 234, 0.3);
}

.v2-contact-form .v2-submit-button:active {
    transform: translateY(0) !important;
}

/* Pills pre pobočky */
.v2-branches-pills {
    margin-top: 20px;
    margin-bottom: 20px;
}

.v2-branches-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
    display: block;
    text-align: left;
}

.v2-branches-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    text-align: left;
}

.v2-branch-pill {
    display: inline-block;
    background-color: #f5f5f5;
    border-radius: 99px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    max-width: 20ch;
    min-width: 15ch;
    text-align: left;
}

/* Hover efekty pro branch pills */
.v2-branch-pill:hover {
    background-color: #28B0EA;
    color: white;
    border-color: #28B0EA;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 176, 234, 0.3);
}

.v2-branch-pill.selected {
    background-color: #28B0EA;
    border-color: #28B0EA;
    color: white;
}

/* Turnstile widget styles */
.v2-turnstile-container {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.v2-turnstile-container .cf-turnstile {
    transform: scale(0.9);
}

/* Disabled submit button when Turnstile not completed */
.v2-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #ccc;
    border-color: #ccc;
    color: #666;
}

.v2-branch-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v2-branch-address {
    font-size: 11px;
    font-weight: 400;
    line-height: 1.2;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v2-sell-option-section{
    width: 100%;
}

.v2-branch-pill.selected .v2-branch-address {
    opacity: 0.9;
}

/* Responsive pre pills */
@media (max-width: 768px) {
    .v2-branches-container {
        justify-content: center;
    }
    
    .v2-branch-pill {
        max-width: 18ch;
        min-width: 12ch;
    }
}

/* Responzivní úpravy pro ceny - pouze částka se nezalamuje */
@media (max-width: 768px) {
    .v2-price-container h1,
    .v2-fixed-price-right h1 {
        font-size: 22px !important;
    }
}

@media (max-width: 480px) {
    .v2-price-container h1,
    .v2-fixed-price-right h1 {
        font-size: 16px !important;
    }
    .v2-price-container{
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .v2-price-container h1{
        margin-bottom: 0;
        margin-top: 0;
    }
}
