/* Form: usr 공통 기능 스타일 */

.check-wrap input {
    display: none;
}

.check-wrap span {
    display: block;
    width: 22px;
    height: 22px;
    border: 2px solid #ddd;
    border-radius: 7px;
}

.check-wrap input:checked+span {
    position: relative;
    background: #4CAF50;
    border-color: #4CAF50;
}

.check-wrap input:checked+span::after {
    content: "✓";
    position: absolute;
    left: 4px;
    top: -2px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.dropdown {
    position: relative;
    margin-bottom: 10px;
}

.dropdown-btn {
    position: relative;
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: none;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(23, 37, 30, 0.05);
    color: #17251e;
    font-size: 15px;
    font-weight: 800;
    text-align: left;
}

.dropdown-btn::after {
    content: "⌄";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #20a75b;
    font-size: 18px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 100;
    display: none;
    width: 100%;
    padding: 8px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(23, 37, 30, 0.12);
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.15s;
}

.dropdown-item:hover {
    background: #f3f8f5;
}

.dropdown-item.active {
    background: #20a75b;
    color: #fff;
}

.menu-dropdown {
    position: absolute;
    top: 52px;
    right: 0;

    width: 180px;

    background: #fff;

    border-radius: 16px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08);

    overflow: hidden;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition: 0.2s ease;
    z-index: 100;
}

.menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-dropdown a {
    display: block;

    padding: 14px 18px;

    color: #222;
    text-decoration: none;

    font-size: 15px;
    font-weight: 500;

    transition: 0.15s;
}

.menu-dropdown a:hover {
    background: #f7f7f7;
}

.menu-dropdown .logout {
    color: #e53935;
}

.ingredient-analysis .upload-box {
    position: relative;
    flex: 1;
    min-height: 240px;
    border: 2px dashed rgba(32, 167, 91, 0.35);
    border-radius: 24px;
    background: linear-gradient(180deg, #f8faf7, #eff9f2);
    overflow: hidden;
    display: grid;
    place-items: center;
    text-align: center;
}

.ingredient-analysis .upload-box input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.ingredient-analysis .upload-inner .big-icon {
    display: block;
    font-size: 58px;
    margin-bottom: 10px;
}

.ingredient-analysis .upload-inner strong {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

.ingredient-analysis .upload-inner span {
    font-size: 13px;
    color: #6b786f;
}

.ingredient-analysis .upload-box.has-image .preview-img {
    display: block;
}

.ingredient-analysis .upload-box.has-image .upload-inner {
    display: none;
}

.ingredient-analysis .price-input-box {
    width: 100%;
    height: 54px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(23, 37, 30, 0.08);
    box-shadow: 0 10px 24px rgba(23, 37, 30, 0.06);
    margin-bottom: 10px;
}

.ingredient-analysis .price-input-box input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 800;
    color: #17251e;
    background: transparent;
}

.ingredient-analysis .price-input-box input::placeholder {
    color: #a2aea7;
    font-weight: 600;
}

.ingredient-analysis .price-input-box:focus-within {
    border-color: #20a75b;
    box-shadow: 0 0 0 4px rgba(32, 167, 91, 0.12);
}

.ingredient-analysis .upload-box.has-image .remove-image-btn {
    display: block;
}

.ingredient-analysis .ingredient-input-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    width: 100%;

    margin-bottom: 22px;
}

.ingredient-analysis .ingredient-input-wrap input {
    width: 100%;
    min-width: 0;
    height: 48px;

    border: 1px solid #ddd;
    border-radius: 12px;

    padding: 0 14px;

    outline: none;
}

.ingredient-analysis .ingredient-input-wrap button {
    min-width: 64px;
    border: none;

    padding: 0 18px;

    border-radius: 12px;

    background: #4CAF50;
    color: #fff;

    font-weight: 600;
    cursor: pointer;

    white-space: nowrap;
}

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

.inquiry-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.inquiry-form .form-group input,
.inquiry-form .form-group select,
.inquiry-form .form-group textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 13px 14px;
    font-size: 14px;
    outline: none;
    background: #fff;
    box-sizing: border-box;
}

.inquiry-form .form-group textarea {
    min-height: 180px;
    resize: none;
    line-height: 1.5;
}

.inquiry-form .form-group input:focus,
.inquiry-form .form-group select:focus,
.inquiry-form .form-group textarea:focus {
    border-color: #9ca3af;
}

.profile-editor .profile-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.profile-editor .profile-image {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 14px;
    border: 4px solid #f4f4f4;
}

.profile-editor .profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-editor .input-group {
    margin-bottom: 18px;
}

.profile-editor .input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.profile-editor .input-group input,
.profile-editor .input-group select {
    width: 100%;
    height: 52px;
    border: 1px solid #e5e5e5;
    border-radius: 14px !important;
    padding: 0 16px;
    font-size: 15px;
    outline: none;
    background: #fff;
}

.profile-editor .input-group input:focus,
.profile-editor .input-group select:focus {
    border-color: #4CAF50;
}

.account-summary .profile-top {
    display: flex;
    align-items: center;
    gap: 16px;

    padding: 22px;

    border-radius: 28px;

    background: linear-gradient(135deg, #eef9f0, #fff6df);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.account-summary .profile-image {
    width: 74px;
    height: 74px;

    overflow: hidden;

    border-radius: 50%;

    background: #fff;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.account-summary .profile-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.account-summary .profile-info h2 {
    margin: 0 0 6px;

    font-size: 24px;
    font-weight: 800;
}

.account-summary .profile-info p {
    margin: 0;

    color: #6f6f6f;
    font-size: 14px;
}

.account-summary .profile-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;

    margin-top: 16px;
}

.recipe-catalog .search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.recipe-catalog .search-box input {
    flex: 1;
    height: 48px;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 0 15px;
    font-size: 14px;
    outline: none;
    background: #fff;
}

.recipe-catalog .search-box button {
    width: 72px;
    border: none;
    border-radius: 16px;
    background: #4CAF50;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.recipe-catalog .price-range-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.recipe-catalog .price-input-box {
    position: relative;
    flex: 1;
}

.recipe-catalog .price-input-box input {
    width: 100%;
    height: 48px;

    border: 1px solid #e5e5e5;
    border-radius: 16px;

    padding: 0 14px 0 34px;

    background: #fff;
    font-size: 14px;
    font-weight: 700;

    outline: none;
    transition: 0.15s;
}

.recipe-catalog .price-input-box input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.08);
}

.recipe-catalog .price-range-divider {
    color: #999;
    font-size: 18px;
    font-weight: 800;
}

.subscribe-modal .subscribe-field {
    text-align: left;
    margin-bottom: 12px;
}

.subscribe-modal .subscribe-field label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 800;
    color: #374151;
}
