﻿.form-container {
    max-width: 1080px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', sans-serif;
}

.form-title, .form-description {
    width: 100%;
    font-size: 1.3rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.add-btn, .export-btn {
    margin: 1rem 0;
    padding: 0.7rem 1.5rem;
    background: #673ab7;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s ease;
}

    .add-btn:hover, .export-btn:hover {
        background: #5e35b1;
    }

.question-box {
    position: relative;
    padding: 1.5rem 1rem 1rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    padding: 40px;
    background-color: #fafafa;
}

.remove-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    border: none;
    background: #C3352B;
    color: white;
    font-size: 0.9rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background 0.2s ease;
}

    .remove-btn:hover {
        background: #d32f2f;
    }


.question-input {
    width: 100%;
    padding: 0.6rem;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    border-radius: 6px;
    border: 1px solid #bbb;
}

.select-type {
    width: 100%;
    padding: 0.6rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #bbb;
    background-color: #fff;
}

.disabled-input, .option-input {
    width: 100%;
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.option-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.option-check {
    margin-right: 0.5rem;
}

.add-option-btn {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #512da8;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.json-output {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 2rem;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    overflow-x: auto;
}


.preview-btn {
    padding: 0.6rem 1.2rem;
    margin: 1rem 0;
    background-color: #009688;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

    .preview-btn:hover {
        background-color: #00796b;
    }

.form-preview {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f3f3f3;
    border-radius: 12px;
    border: 1px solid #ccc;
}

.preview-description {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.preview-question {
    margin-bottom: 1.5rem;
}

.preview-label {
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}

.preview-input {
    width: 100%;
    padding: 0.6rem;
    border-radius: 6px;
    border: 1px solid #bbb;
    font-size: 1rem;
}

.preview-option {
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


.add-between {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
    position: relative;
}

.line {
    flex-grow: 1;
    height: 1px;
    background-color: #ccc;
    margin: 0 1rem;
}

.add-btn-between {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background-color: #6738c7;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: background-color 0.2s ease;
}

    .add-btn-between:hover {
        background-color: #350595;
    }


.banner-img {
    width: 270px;
    height: 200px;
    object-fit: contain;
    object-position: center;
}
