/* Darčekové poukážky - Moderný Frontend CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ============= RESET ŠTÝLOV PRE TÉMY ============= */
.darcekovka-order-form * {
    box-sizing: border-box !important;
}

/* Wrapper pre odstránenie okrajov témy */
.darcekovka-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    min-height: auto !important;
    overflow: visible !important;
}

/* Kompletný reset pre wrapper a všetky jeho potomky */
.darcekovka-wrapper,
.darcekovka-wrapper * {
    box-sizing: border-box !important;
}

/* ============= HLAVNÝ KONTAJNER ============= */
.darcekovka-order-form {
    width: 100%;
    margin: 20px auto;
    padding: 0;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    position: relative;
}

.darcekovka-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    color: #2d3748;
    margin: 0;
    padding: 48px 24px 40px;
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 50%, #e6b800 100%);
    text-shadow: none;
    font-family: 'Inter', sans-serif;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}

.darcekovka-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.3;
}

/* ============= SEKCIE FORMULÁRA ============= */
.darcekovka-form-section {
    padding: 32px 40px;
    width: 100%;
    box-sizing: border-box;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 24px 0;
    display: flex;
    align-items: center;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.025em;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 28px;
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 100%);
    border-radius: 2px;
    margin-right: 16px;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

/* ============= DLAŽDICOVÝ VÝBER POUKÁŽOK ============= */
.voucher-tiles-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.voucher-tile {
    position: relative;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.voucher-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4af37 0%, #f4e4bc 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 16px 16px 0 0;
}

.voucher-tile:hover {
    border-color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
}

.voucher-tile:hover::before {
    transform: scaleX(1);
}

.voucher-tile.selected {
    border-color: #d4af37;
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 100%);
    color: #2d3748;
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(212, 175, 55, 0.4);
}

.voucher-tile.selected::before {
    transform: scaleX(1);
    background: rgba(255,255,255,0.4);
}

.tile-content {
    text-align: center;
    position: relative;
}

.tile-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: inherit;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.tile-description {
    font-size: 14px;
    font-weight: 400;
    margin: 0 0 16px 0;
    color: #64748b;
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
    opacity: 0.8;
}

.voucher-tile.selected .tile-description {
    color: rgba(45, 55, 72, 0.8);
}

.tile-price {
    font-size: 28px;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
}

.voucher-tile.selected .tile-price {
    color: #2d3748;
}

.tile-check {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 28px;
    height: 28px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.voucher-tile.selected .tile-check {
    opacity: 1;
    transform: scale(1);
}

/* ============= MODERNÉ FORMULÁROVÉ POLIA ============= */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.form-field {
    position: relative;
    display: flex;
    flex-direction: column;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-field .field-hint {
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
    font-family: 'Inter', sans-serif;
}

.form-field label {
    font-size: 18px !important;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    font-size: 12px;
}

/* Moderné input polia s tieňom a gradientmi */
.darcekovka-order-form .form-field input,
.darcekovka-order-form .form-field textarea {
    width: 100% !important;
    padding: 16px 20px !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 400 !important;
    background: #ffffff !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    color: #1f2937 !important;
    line-height: 1.5 !important;
    min-height: 56px !important;
    box-sizing: border-box !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

.darcekovka-order-form .form-field textarea {
    min-height: 120px !important;
    resize: vertical !important;
    line-height: 1.6 !important;
    padding-top: 16px !important;
}

/* Focus efekty */
.darcekovka-order-form .form-field input:focus,
.darcekovka-order-form .form-field textarea:focus {
    border-color: #d4af37 !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1), 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-1px) !important;
    background: #fffef8 !important;
}

/* Hover efekty */
.darcekovka-order-form .form-field input:hover,
.darcekovka-order-form .form-field textarea:hover {
    border-color: #d1d5db !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

/* Placeholder štýly */
.darcekovka-order-form .form-field input::placeholder,
.darcekovka-order-form .form-field textarea::placeholder {
    color: #9ca3af !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

/* Špeciálne ikony pre email a telefón */
.darcekovka-order-form .form-field input[type="email"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%23374151' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 20px center !important;
    padding-right: 55px !important;
}

.darcekovka-order-form .form-field input[type="tel"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%23374151' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 20px center !important;
    padding-right: 55px !important;
}

/* Validačné stavy */
.darcekovka-order-form .form-field input:valid {
    border-color: #10b981 !important;
}

.darcekovka-order-form .form-field input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #ef4444 !important;
}

/* ============= SÚHLASY A SÚHRN VEDĽA SEBA ============= */
.consent-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 24px;
    align-items: start;
}

.consent-column,
.summary-column {
    min-height: 200px;
}

/* ============= MODERNÉ SÚHLASY ============= */
.consent-container {
    margin-top: 24px;
}

.consent-item {
    margin-bottom: 16px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.master-consent {
    background: linear-gradient(135deg, #fffef7 0%, #fefbf0 100%);
    border: 2px solid #f4e4bc;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.master-consent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4af37 0%, #f4e4bc 100%);
}

.consent-item:hover {
    background: #fffef7;
    border-color: #f4e4bc;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.08);
    transform: translateY(-1px);
}

.master-consent:hover {
    background: linear-gradient(135deg, #fefbf0 0%, #f9f1dc 100%);
    border-color: #e6d09a;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    padding-left: 40px;
    user-select: none;
}

.consent-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 0px;
    height: 24px;
    width: 24px;
    background-color: #ffffff;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.consent-label:hover .checkmark {
    border-color: #d4af37;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.2);
}

.consent-label input:checked ~ .checkmark {
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 100%);
    border-color: #d4af37;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.consent-label input:checked ~ .checkmark:after {
    display: block;
}

.consent-text {
    font-size: 18px;
    line-height: 1.4;
    color: #374151;
    font-family: 'Inter', sans-serif;
}

.master-consent .consent-text {
    font-weight: 600;
    color: #2d3748;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
}

.consent-text a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.consent-text a:hover {
    color: #b8941f;
    text-decoration: underline;
}

/* ============= SÚHRN OBJEDNÁVKY V NOVOM LAYOUTE ============= */
.order-summary-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.order-summary-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.summary-header {
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 100%);
    padding: 20px 24px;
    color: #2d3748;
    position: relative;
    overflow: hidden;
}

.summary-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='20' cy='20' r='1'/%3E%3C/g%3E%3C/svg%3E") repeat;
}

.summary-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.025em;
    position: relative;
    z-index: 1;
}

.summary-body {
    padding: 24px;
    font-family: 'Inter', sans-serif;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.summary-row:last-child {
    border-bottom: none;
}

.price-row {
    padding-top: 20px;
    margin-top: 16px;
    border-top: 2px solid #e5e7eb;
}

.summary-label {
    font-size: 16px;
    color: #6b7280;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.summary-value {
    font-weight: 600;
    color: #1f2937;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
}

.summary-price {
    font-size: 28px;
    font-weight: 700;
    color: #059669;
    font-family: 'Inter', sans-serif;
}

.payment-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, #fffef7 0%, #fefbf0 100%);
    border-top: 1px solid #f4e4bc;
}

.notice-icon {
    font-size: 18px;
    flex-shrink: 0;
    color: #d4af37;
}

.notice-text {
    font-size: 16px;
    color: #1e40af;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

/* ============= TLAČIDLO ODOSLANIA ============= */
.submit-section {
    padding: 40px 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 2px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.submit-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.03'%3E%3Ccircle cx='40' cy='40' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.submit-button {
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 50%, #e6b800 100%);
    color: #2d3748;
    border: none;
    border-radius: 20px;
    padding: 28px 64px;
    font-size: 22px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    min-width: 380px;
    position: relative;
    overflow: hidden;
    letter-spacing: -0.025em;
    z-index: 1;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.submit-button:hover::before {
    left: 100%;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(212, 175, 55, 0.6);
}

.submit-button:active {
    transform: translateY(-1px);
}

.submit-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 12px rgba(156, 163, 175, 0.3);
}

.btn-loader .spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============= SPRÁVY ============= */
.darcekovka-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #fecaca;
    color: #dc2626;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1);
}

.darcekovka-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #bbf7d0;
    color: #16a34a;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.1);
}

/* ============= RESPONZÍVNOSŤ ============= */
@media (max-width: 959px) {
    .voucher-tiles-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    /* Súhlasy a súhrn pod sebou namiesto vedľa seba */
    .consent-summary-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    
    /* Zabezpečenie proti externým CSS štýlom */
    .darcekovka-order-form {
        margin: 20px auto !important;
        padding: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .darcekovka-form-section {
        padding: 32px 40px !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Mobilné zariadenia */
@media (max-width: 600px) {
    /* Typy poukážok v 1 stĺpci */
    .voucher-tiles-container {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    /* Kontaktné údaje v 1 stĺpci */
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* Menšie paddingy pre mobilné zariadenia */
    .darcekovka-form-section {
        padding: 24px 20px !important;
    }
    
    /* Responzívne tlačidlo pre malé mobilné obrazovky */
    .submit-button {
        width: 100% !important;
        min-width: auto !important;
        max-width: 100% !important;
        padding: 20px 32px !important;
        font-size: 22px !important;
        box-sizing: border-box !important;
    }
}

/* Modal Styles */
.darcekovka-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', sans-serif;
}

.darcekovka-modal-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.darcekovka-modal-header {
    margin-bottom: 20px;
}

.darcekovka-modal-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.darcekovka-modal-title {
    color: #2d3748;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.darcekovka-modal-body p {
    color: #4a5568;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

/* Mobile modal adjustments */
@media screen and (max-width: 600px) {
    .darcekovka-modal-content {
        padding: 24px;
        margin: 20px;
    }
    
    .darcekovka-modal-icon {
        font-size: 40px;
        margin-bottom: 12px;
    }
    
    .darcekovka-modal-title {
        font-size: 20px;
    }
    
    .darcekovka-modal-body p {
        font-size: 14px;
    }
}




