/* ===========================================
   Forms
   폼 공통 스타일
   =========================================== */

/* Input Fields */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E7E7E7;
    border-radius: 6px;
    font-family: "Noto Sans KR", sans-serif;
    font-size: 14px;
    color: var(--theme-text);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="search"]:focus {
    outline: none;
    border-color: var(--theme-accent);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/* Textarea */
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E7E7E7;
    border-radius: 6px;
    font-family: "Noto Sans KR", sans-serif;
    font-size: 14px;
    color: var(--theme-text);
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: var(--theme-accent);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/* Select */
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E7E7E7;
    border-radius: 6px;
    font-family: "Noto Sans KR", sans-serif;
    font-size: 14px;
    color: var(--theme-text);
    background: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

select:focus {
    outline: none;
    border-color: var(--theme-accent);
}

/* Form Labels */
label {
    display: block;
    margin-bottom: 8px;
    font-family: "Noto Sans KR", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--theme-text);
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

/* Form Error States */
.form-error input,
.form-error textarea,
.form-error select {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
}

/* Placeholder Styles */
::placeholder {
    color: #8C8C8C;
    opacity: 1;
}

/* Checkbox & Radio */
input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--theme-accent);
}

/* Form Submit Button */
.form-submit {
    display: inline-block;
    padding: 14px 40px;
    background: var(--theme-accent);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-family: "Noto Sans KR", sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    background: var(--theme-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.form-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
}

.search-form button {
    padding: 12px 20px;
    background: var(--theme-accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-form button:hover {
    background: var(--theme-accent-hover);
}
