/* ===== DOODLE MODAL STYLING ===== */
.modal-doodle {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-doodle.active {
    display: flex;
}

.modal-overlay-doodle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content-doodle {
    position: relative;
    background: var(--bg-paper);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    z-index: 1;
    animation: modal-slide-in 0.3s ease-out;
}

@keyframes modal-slide-in {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-sketch-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Close Button */
.modal-close-doodle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid var(--ink-black);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.modal-close-doodle:hover {
    background: var(--ink-black);
}

.modal-close-doodle:hover svg line {
    stroke: white;
}

/* Modal Header */
.modal-header-doodle {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-icon-doodle {
    display: block;
    margin: 0 auto 1rem;
}

.modal-title-doodle {
    font-family: var(--font-handdrawn);
    font-size: 2rem;
    color: var(--ink-black);
    margin-bottom: 0.5rem;
}

.modal-subtitle-doodle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Form Styling */
.modal-form-doodle {
    position: relative;
    z-index: 1;
}

.form-group-doodle {
    margin-bottom: 1.5rem;
}

.form-group-doodle label {
    display: block;
    font-family: var(--font-handdrawn);
    font-size: 1rem;
    color: var(--ink-black);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group-doodle input[type="text"],
.form-group-doodle input[type="email"],
.form-group-doodle select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--ink-black);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.form-group-doodle input:focus,
.form-group-doodle select:focus {
    outline: none;
    border-color: var(--ink-black);
    box-shadow: 4px 4px 0 var(--highlighter-yellow);
    transform: translateY(-2px);
}

.form-group-doodle input::placeholder {
    color: var(--text-muted);
}

/* Radio Buttons */
.radio-group-doodle {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.radio-label-doodle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink-black);
}

.radio-label-doodle input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 24px;
    height: 24px;
    border: 2px solid var(--ink-black);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-label-doodle input[type="radio"]:checked+.radio-custom {
    background: var(--highlighter-yellow);
    border-color: var(--ink-black);
}

.radio-label-doodle input[type="radio"]:checked+.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--ink-black);
    border-radius: 50%;
}

/* Submit Button */
.btn-modal-submit {
    position: relative;
    width: 100%;
    padding: 1rem;
    background: var(--highlighter-yellow);
    border: none;
    cursor: pointer;
    font-family: var(--font-handdrawn);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink-black);
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.btn-modal-submit:hover {
    transform: translateY(-3px);
}

.btn-modal-submit span {
    position: relative;
    z-index: 1;
}

.btn-modal-sketch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.modal-footer-text {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    font-family: var(--font-handwriting);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-content-doodle {
        padding: 2rem 1.5rem;
        max-width: 95%;
    }

    .modal-title-doodle {
        font-size: 1.75rem;
    }

    .modal-subtitle-doodle {
        font-size: 0.9375rem;
    }

    .radio-group-doodle {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-modal-submit {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .modal-content-doodle {
        padding: 1.5rem 1rem;
    }

    .modal-title-doodle {
        font-size: 1.5rem;
    }

    .modal-close-doodle {
        width: 36px;
        height: 36px;
    }
}