
/* ============================================
   POPTÁVKOVÝ FORMULÁŘ - DEMAND.HTML
   ============================================ */

/* MODAL DIALOG - Pro otevření formuláře */
.demand-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.demand-modal-content {
    background: linear-gradient(145deg, #141414, #0f0f0f);
    padding: 40px 35px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    max-width: 500px;
    width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.demand-modal-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.demand-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    border: none;
    background: none;
    padding: 0;
    line-height: 1;
}

.demand-close:hover {
    opacity: 1;
}

/* RADIO CARDS V MODALU */
.modal-radio-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (max-width: 480px) {
    .modal-radio-cards {
        grid-template-columns: 1fr;
    }
}

.modal-radio-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 1, 0.3, 1);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 500;
}

.modal-radio-card i {
    font-size: 1.8rem;
    color: var(--text-dim);
    transition: all 0.3s ease;
}

.modal-radio-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-3px);
}

input[type="radio"]:checked + .modal-radio-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--text);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

input[type="radio"]:checked + .modal-radio-card i {
    color: var(--text);
    transform: scale(1.15);
}

@media (max-width: 480px) {
    .modal-radio-cards {
        grid-template-columns: 1fr;
    }

    .demand-modal-content {
        max-width: 100%;
        margin: 20px;
        padding: 30px 20px;
        border-radius: 15px;
    }

    .demand-modal-content h3 {
        font-size: 1.2rem;
    }
}

/* HERO SEKCE - Úvodní část formuláře */
.demand-hero {
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    margin-top: 70px;
}

.demand-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.05), transparent);
    pointer-events: none;
}

.demand-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text);
}

.demand-hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.demand-hero-content p {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* TLAČÍTKO V HERO SEKCI */
.demand-hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.9));
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}

.demand-hero-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(255, 255, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.demand-hero-button:active {
    transform: translateY(-2px);
}

.demand-hero-button i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.demand-hero-button:hover i {
    transform: translateX(5px);
}

/* FORMULÁŘ SEKCE */
.demand-section {
    padding: 80px 10%;
    background: var(--bg);
}

.demand-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

/* FORMULÁŘ - Hlavní kontejner */
.demand-form {
    background: linear-gradient(145deg, var(--card-bg), #0f0f0f);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: formSlideIn 0.6s ease forwards;
}

@keyframes formSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Skupiny formuláře */
.form-group {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group:last-child {
    margin-bottom: 0;
}

/* Label - Popis pole */
.form-label {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text);
    margin-bottom: 5px;
    display: block;
}

/* ============================================
   RADIO BUTTONY - Výběr typu projektu
   ============================================ */

.radio-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

/* Skryt default radio button */
input[type="radio"] {
    display: none;
}

/* Stylizace kartičky */
.radio-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 25px 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 1, 0.3, 1);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.95rem;
    font-weight: 500;
}

.radio-card i {
    font-size: 2rem;
    color: var(--text-dim);
    transition: all 0.3s ease;
}

/* Hover efekt */
.radio-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
}

/* Vybraná kartička */
input[type="radio"]:checked + .radio-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--text);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

input[type="radio"]:checked + .radio-card i {
    color: var(--text);
    transform: scale(1.2);
}

/* ============================================
   CHECKBOXY - Výběr služeb
   ============================================ */

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.checkbox-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Skryt default checkbox */
input[type="checkbox"] {
    display: none;
}

/* Vlastní checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    width: 100%;
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-dim);
    transition: color 0.3s ease;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Zaškrtnutý checkbox */
input[type="checkbox"]:checked + .checkbox-label {
    color: var(--text);
}

input[type="checkbox"]:checked + .checkbox-label .checkbox-custom {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.15));
    border-color: rgba(255, 255, 255, 0.5);
}

input[type="checkbox"]:checked + .checkbox-label .checkbox-custom::before {
    content: '✓';
    color: var(--text);
    font-size: 1rem;
    font-weight: bold;
}

/* ============================================
   TEXTOVÁ POLE - Email, telefon, zpráva
   ============================================ */

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    resize: none;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.form-input:invalid {
    border-color: rgba(255, 100, 100, 0.3);
}

.form-input:valid {
    border-color: rgba(100, 255, 100, 0.2);
}

/* Pomocný text pod polem */
.form-help {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: -10px;
}

/* ============================================
   TLAČÍTKO - Odeslat poptávku
   ============================================ */

.submit-button {
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.9));
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}

.submit-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(255, 255, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.submit-button:active {
    transform: translateY(-2px);
}

.submit-button i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.submit-button:hover i {
    transform: translateX(5px);
}

/* ============================================
   POTVRZOVACÍ ZPRÁVA
   ============================================ */

.success-message {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 50px;
    background: linear-gradient(145deg, var(--card-bg), #0f0f0f);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    animation: messageAppear 0.6s ease forwards;
}

@keyframes messageAppear {
    from {
        opacity: 0;
        scale: 0.9;
    }
    to {
        opacity: 1;
        scale: 1;
    }
}

.success-message i {
    font-size: 3rem;
    color: #4ade80;
    animation: checkPulse 0.8s ease forwards;
}

@keyframes checkPulse {
    0% {
        scale: 0;
        rotate: -45deg;
    }
    50% {
        scale: 1.1;
    }
    100% {
        scale: 1;
        rotate: 0;
    }
}

.success-message h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.success-message p {
    color: var(--text-dim);
    font-size: 1rem;
    max-width: 500px;
}

/* ============================================
   RESPONZIVITA - Mobilní verze
   ============================================ */

@media (max-width: 768px) {
    .demand-section {
        padding: 50px 5%;
    }

    .demand-form {
        padding: 30px 20px;
        border-radius: 15px;
    }

    .radio-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .radio-card {
        padding: 20px 10px;
        font-size: 0.85rem;
    }

    .radio-card i {
        font-size: 1.5rem;
    }

    .form-input {
        padding: 12px 14px;
        font-size: 16px; /* Zabraňuje zoom na iOS */
    }

    .submit-button {
        padding: 14px 20px;
        font-size: 0.9rem;
    }

    .demand-hero-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .demand-section {
        padding: 40px 4%;
    }

    .demand-form {
        padding: 20px 15px;
    }

    .form-group {
        margin-bottom: 30px;
    }

    .radio-cards {
        grid-template-columns: 1fr;
    }

    .submit-button {
        font-size: 0.85rem;
        gap: 8px;
    }
}

/* ============================================
   DYNAMICKÉ POLE
   ============================================ */

.dynamic-fields {
    display: grid;
    gap: 30px;
    animation: fadeSlideIn 0.4s ease forwards;
    overflow: hidden;
}

.dynamic-fields.hidden {
    display: none;
    animation: none;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 2000px;
        transform: translateY(0);
    }
}

/* Radio Cards pro dynamické pole */
.dynamic-fields .radio-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.dynamic-fields .radio-card {
    padding: 16px 12px;
    font-size: 0.85rem;
}

.dynamic-fields .radio-card i {
    font-size: 1.6rem;
}

/* Checkboxy v dynamických polích */
.dynamic-fields .checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

@media (max-width: 768px) {
    .dynamic-fields .radio-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .dynamic-fields .radio-cards {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ENHANCED FADE-IN ANIMACE PRO POLE
   ============================================ */

.fade-in {
    animation: smoothFadeIn 0.6s cubic-bezier(0.2, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes smoothFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggerování animace pro jednotlivá pole */
.dynamic-fields .fade-in:nth-child(1) {
    animation-delay: 0.05s;
}

.dynamic-fields .fade-in:nth-child(2) {
    animation-delay: 0.15s;
}

.dynamic-fields .fade-in:nth-child(3) {
    animation-delay: 0.25s;
}

.dynamic-fields .fade-in:nth-child(4) {
    animation-delay: 0.35s;
}
