/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #409da2 0%, #213975 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    background: #e8f9e8;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

h1 {
    text-align: center;
    color: #213975;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

h2 {
    color: #213975;
    margin-bottom: 20px;
    font-size: 1.3rem;
    border-bottom: 2px solid #409da2;
    padding-bottom: 10px;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #c1f7c2;
    z-index: 0;
}

.step {
    flex: 1;
    text-align: center;
    padding: 10px 5px;
    background: #e8f9e8;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #17155e;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.step.active {
    color: #409da2;
    font-weight: 600;
    background: #c1f7c2;
}

.step.completed {
    color: #83e588;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #213975;
}

input[type="text"],
input[type="email"],
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #c1f7c2;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus {
    outline: none;
    border-color: #409da2;
}

small {
    display: block;
    margin-top: 5px;
    color: #17155e;
    font-size: 0.85rem;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    cursor: pointer;
}

/* Declaration Box */
.declaration-box {
    background: #c1f7c2;
    border-left: 4px solid #409da2;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.declaration-box p {
    font-style: italic;
    color: #213975;
}

/* CAPTCHA */
.captcha-display {
    background: #83e588;
    padding: 15px 25px;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    letter-spacing: 5px;
    border-radius: 8px;
    margin-bottom: 10px;
    color: #213975;
}

/* Participant Container */
#participant-info {
    background: #c1f7c2;
    border: 1px solid #83e588;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    color: #213975;
}

.participant-input {
    margin-bottom: 15px;
}

.participant-input label {
    font-weight: normal;
    font-size: 0.9rem;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #409da2 0%, #213975 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(64, 157, 162, 0.4);
}

.btn-secondary {
    background: #17155e;
    color: white;
}

.btn-secondary:hover {
    background: #213975;
}

.btn-success {
    background: #83e588;
    color: #213975;
}

.btn-success:hover {
    background: #409da2;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(131, 229, 136, 0.4);
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
    background: #17155e;
    color: white;
}

.btn-small:hover {
    background: #213975;
}

/* Messages */
.success-message,
.error-message {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
}

.success-message {
    background: #c1f7c2;
    color: #213975;
    border: 1px solid #83e588;
}

.error-message {
    background: #ffcccb;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.hidden {
    display: none;
}

/* Responsive */
/* Tablet */
@media (max-width: 768px) {
    .container {
        padding: 25px;
        margin: 10px;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .step-indicator {
        font-size: 0.8rem;
    }

    .step {
        padding: 8px 3px;
    }

    input[type="text"],
    input[type="email"],
    select {
        padding: 10px 12px;
        font-size: 0.95rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

/* Phone */
@media (max-width: 600px) {
    .container {
        padding: 20px;
        margin: 5px;
    }

    body {
        padding: 10px;
    }

    h1 {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }

    h2 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .step-indicator {
        font-size: 0.7rem;
        padding: 0 5px;
    }

    .step-indicator::before {
        top: 12px;
        left: 5%;
        right: 5%;
    }

    .step {
        padding: 6px 2px;
        font-size: 0.7rem;
    }

    .form-group {
        margin-bottom: 18px;
    }

    label {
        margin-bottom: 6px;
        font-size: 0.9rem;
    }

    input[type="text"],
    input[type="email"],
    select {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    small {
        font-size: 0.8rem;
    }

    .checkbox-label {
        font-size: 0.9rem;
        gap: 8px;
    }

    .button-group {
        gap: 8px;
        margin-top: 25px;
    }

    .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .btn-small {
        padding: 6px 10px;
        font-size: 0.8rem;
        min-height: 36px;
        white-space: normal;
        line-height: 1.2;
    }

    /* Specifically for the no-otproba button */
    #no-otproba-btn {
        font-size: 0.75rem;
        padding: 5px 8px;
        min-width: 0;
        flex-shrink: 1;
    }

    /* Stack vertically on very small screens */
    @media (max-width: 400px) {
        .form-group:has(#no-otproba-btn) > div {
            flex-direction: column;
        }

        #no-otproba-btn {
            width: 100%;
            text-align: center;
        }
    }

    .declaration-box {
        padding: 12px;
        font-size: 0.9rem;
    }

    .captcha-display {
        padding: 12px 15px;
        font-size: 1.2rem;
        letter-spacing: 3px;
    }

    .participant-input label {
        font-size: 0.85rem;
    }

    #participant-info {
        padding: 10px;
        font-size: 0.9rem;
    }

    .success-message,
    .error-message {
        padding: 15px;
        font-size: 0.9rem;
    }
}
