.form-field {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-field label {
    display: block;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    color: #475569;
    transition: color 0.3s ease;
}

.dark .form-field label {
    color: #94a3b8;
}

.form-field label .required-star {
    color: #800000;
    margin-left: 2px;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.875rem;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
    background: #ffffff;
    color: #1e293b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.dark .form-input {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

.form-input:focus {
    border-color: #800000;
    box-shadow: 0 0 0 4px rgba(128, 0, 0, 0.1);
}

.dark .form-input:focus {
    border-color: #a52a2a;
    box-shadow: 0 0 0 4px rgba(165, 42, 42, 0.2);
}

.form-input::placeholder {
    color: #94a3b8;
    font-style: italic;
}

.dark .form-input::placeholder {
    color: #64748b;
}

.form-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.form-input.success {
    border-color: #22c55e;
}

textarea.form-input {
    min-height: 160px;
    resize: vertical;
    line-height: 1.7;
}

.custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    padding: 1rem 1.25rem;
    border-radius: 0.875rem;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    transition: all 0.3s ease;
    user-select: none;
}

.dark .custom-checkbox {
    background: #1e293b;
    border-color: #334155;
}

.custom-checkbox:hover {
    border-color: #800000;
    background: #fef2f2;
}

.dark .custom-checkbox:hover {
    border-color: #a52a2a;
    background: #1e293b;
}

.custom-checkbox input[type="checkbox"] {
    display: none;
}

.custom-checkbox .checkbox-mark {
    flex-shrink: 0;
    width: 1.375rem;
    height: 1.375rem;
    border: 2px solid #cbd5e1;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-top: 1px;
}

.dark .custom-checkbox .checkbox-mark {
    border-color: #475569;
}

.custom-checkbox .checkbox-mark i {
    font-size: 0.7rem;
    color: white;
    opacity: 0;
    transform: scale(0);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-checkbox input[type="checkbox"]:checked + .checkbox-mark {
    background: #800000;
    border-color: #800000;
}

.custom-checkbox input[type="checkbox"]:checked + .checkbox-mark i {
    opacity: 1;
    transform: scale(1);
}

.custom-checkbox .checkbox-text {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
}

.dark .custom-checkbox .checkbox-text {
    color: #94a3b8;
}

.field-error {
    font-size: 0.8rem;
    color: #ef4444;
    margin-top: 0.375rem;
    display: none;
    align-items: center;
    gap: 0.375rem;
}

.field-error.visible {
    display: flex;
}

.char-counter {
    text-align: right;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

.char-counter.warning {
    color: #f59e0b;
}

.char-counter.danger {
    color: #ef4444;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #800000 0%, #4a0000 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(128, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

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

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

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(128, 0, 0, 0.45);
}

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

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(128, 0, 0, 0.15);
}

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

.form-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.dark .form-overlay {
    background: rgba(15, 23, 42, 0.95);
}

.form-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.2) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.success-icon {
    animation: checkmark 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.3;
    }

    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}

.pulse-ring {
    animation: pulse-ring 2s ease-in-out infinite;
}

.verse-card {
    background: linear-gradient(135deg, rgba(128, 0, 0, 0.05) 0%, rgba(26, 54, 93, 0.05) 100%);
    border-left: 4px solid #800000;
}

.dark .verse-card {
    background: linear-gradient(135deg, rgba(128, 0, 0, 0.15) 0%, rgba(26, 54, 93, 0.15) 100%);
}

.cf-turnstile {
    display: flex;
    justify-content: center;
}

.share-buttons button {
    transition: all 0.3s ease;
}

.share-buttons button:hover {
    transform: translateY(-3px);
}

.brochure-empty-state {
    border: 1px dashed #cbd5e1;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    color: #64748b;
}

.dark .brochure-empty-state {
    border-color: #475569;
    color: #94a3b8;
}
