@import url("https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&display=swap");
.button-glow { display: inline-flex; position: relative; align-items: center; justify-content: center; gap: 0.5rem; box-sizing: border-box; padding: 0.9rem 2.5rem; color: white; background: transparent; text-decoration: none; letter-spacing: 0.08em; font-family: "Lora", serif; font-size: 0.95rem; border: 1px solid rgba(91, 221, 170, 0.5); border-radius: 5px; overflow: hidden; transition: all 0.4s ease; }

.button-glow svg { width: 16px; height: 16px; }

.button-glow::before { position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(91, 221, 170, 0.15), transparent); content: ""; transition: left 0.5s ease; }

.button-glow:hover { color: white; border-color: #5bddaa; box-shadow: 0 0 20px rgba(91, 221, 170, 0.2); }

.button-glow:hover::before { left: 100%; }

.button-glow.button-glow-light { color: #1a1a2e; border-color: rgba(59, 191, 101, 0.4); }

.button-glow.button-glow-light::before { background: linear-gradient(90deg, transparent, rgba(59, 191, 101, 0.12), transparent); }

.button-glow.button-glow-light:hover { color: #1a1a2e; border-color: #3bbf65; box-shadow: 0 0 20px rgba(59, 191, 101, 0.15); }

.button-gradient-primary, .form-button, .button-gradient-primary-dark { display: inline-flex; align-items: center; gap: 0.5rem; box-sizing: border-box; padding: 0.9rem 2rem; color: white; background: linear-gradient(135deg, #3bbf65 0%, #5fce82 100%); text-decoration: none; letter-spacing: 0.06em; font-family: "Lora", serif; font-size: 0.95rem; font-weight: 500; border: none; border-radius: 5px; cursor: pointer; transition: all 0.35s ease; }

.button-gradient-primary svg, .form-button svg, .button-gradient-primary-dark svg { width: 18px; height: 18px; transition: transform 0.3s ease; }

.button-gradient-primary:hover, .form-button:hover, .button-gradient-primary-dark:hover { color: white; background: linear-gradient(135deg, #3bbf65 0%, #5bddaa 100%); box-shadow: 0 8px 32px rgba(59, 191, 101, 0.35), 0 0 60px rgba(59, 191, 101, 0.15); transform: translateY(-2px); }

.button-gradient-primary:hover svg:last-child, .form-button:hover svg:last-child, .button-gradient-primary-dark:hover svg:last-child { transform: translateX(4px); }

.button-gradient-primary:active, .form-button:active, .button-gradient-primary-dark:active { box-shadow: 0 4px 16px rgba(59, 191, 101, 0.3); transform: translateY(0); }

.button-gradient-primary-dark { background: linear-gradient(135deg, rgba(59, 191, 101, 0.9) 0%, rgba(59, 191, 101, 0.7) 100%); }

.button-gradient-primary-dark:hover { background: linear-gradient(135deg, #3bbf65 0%, rgba(91, 221, 170, 0.9) 100%); }

@keyframes shake-horizontal { 0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); } }

@keyframes fade-in-up { from { opacity: 0;
    transform: translateY(20px); }
  to { opacity: 1;
    transform: translateY(0); } }

@keyframes scale-in { from { opacity: 0;
    transform: scale(0.5); }
  to { opacity: 1;
    transform: scale(1); } }

@keyframes card-appear { from { opacity: 0;
    transform: translateY(20px) scale(0.98); }
  to { opacity: 1;
    transform: translateY(0) scale(1); } }

@keyframes error-appear { from { opacity: 0;
    transform: translateY(-4px); }
  to { opacity: 1;
    transform: translateY(0); } }

.form-page { display: flex; flex-direction: column; align-items: center; min-height: calc(100vh - 72px - 200px); padding: 48px 24px 64px; }

@media (max-width: 576px) { .form-page { padding: 32px 16px 48px; } }

.form-card { width: 100%; max-width: 640px; padding: 2.5rem; background: rgba(255, 255, 255, 0.85); backdrop-filter: saturate(180%) blur(20px); border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 16px; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.5); animation: card-appear 0.5s ease both; }

@media (max-width: 576px) { .form-card { padding: 2rem 1.5rem; border-radius: 12px; } }

.form-card-wide { max-width: 780px; }

.form-card-header { margin-bottom: 2rem; text-align: center; }

.form-card-title { margin: 0; color: #1a1a2e; font-family: "Lora", serif; font-size: 1.5rem; font-weight: 600; }

@media (max-width: 576px) { .form-card-title { font-size: 1.25rem; } }

.form-card-line { width: 50px; height: 3px; margin: 1rem auto 0; background: linear-gradient(90deg, #3bbf65, #5bddaa); border-radius: 2px; }

.form-field-group { margin-bottom: 1.25rem; }

.form-field-label { display: block; margin-bottom: 0.4rem; color: #555; font-size: 0.88rem; font-weight: 500; transition: color 0.2s ease; }

.form-field-input-wrapper { position: relative; }

.form-field-input-wrapper input, .form-field-input-wrapper select, .form-field-input-wrapper textarea { display: block; width: 100%; padding: 0.75rem 1rem; color: #1a1a2e; background-color: rgba(249, 250, 251, 0.8); font-family: inherit; font-size: 0.95rem; border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 8px; outline: none; transition: all 0.25s ease; }

.form-field-input-wrapper input::placeholder, .form-field-input-wrapper select::placeholder, .form-field-input-wrapper textarea::placeholder { color: #888; }

.form-field-input-wrapper input:hover, .form-field-input-wrapper select:hover, .form-field-input-wrapper textarea:hover { background-color: rgba(255, 255, 255, 0.95); border-color: rgba(0, 0, 0, 0.15); }

.form-field-input-wrapper input:focus, .form-field-input-wrapper select:focus, .form-field-input-wrapper textarea:focus { background-color: #fff; border-color: rgba(59, 191, 101, 0.5); box-shadow: 0 0 0 3px rgba(59, 191, 101, 0.1); }

.form-field-input-wrapper textarea { resize: vertical; min-height: 120px; }

.form-field-input-wrapper select { appearance: base-select; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-position: right 1rem center; background-repeat: no-repeat; background-size: 16px; cursor: pointer; }

.form-field-input-wrapper select::picker-icon { display: none; }

.form-field-input-wrapper select:open { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 15 12 9 18 15'%3E%3C/polyline%3E%3C/svg%3E"); }

.form-field-input-wrapper input[type="file"] { padding: 0.6rem 1rem; cursor: pointer; }

.form-field-input-wrapper input[type="file"]::file-selector-button { margin-right: 1rem; padding: 0.4rem 1rem; color: #1a1a2e; background: rgba(59, 191, 101, 0.08); font-size: 0.88rem; border: 1px solid rgba(59, 191, 101, 0.2); border-radius: 6px; cursor: pointer; transition: all 0.2s ease; }

.form-field-input-wrapper input[type="file"]::file-selector-button:hover { background: rgba(59, 191, 101, 0.15); }

.form-field-input-wrapper input[type="checkbox"] { accent-color: #3bbf65; display: inline-block; width: auto; padding: 0; cursor: pointer; }

.form-field-group-checkbox .form-field-input-wrapper { display: flex; align-items: center; gap: 0.5rem; }

.form-field-group-checkbox .form-field-label { display: inline; margin-bottom: 0; cursor: pointer; }

.form-field-help { margin-top: 0.35rem; color: #888; letter-spacing: 0.02em; font-size: 0.78rem; font-weight: 400; }

.form-field-help ul { margin: 0.25rem 0 0; padding-left: 1.2rem; list-style: disc; }

.form-field-help li { margin-bottom: 0.15rem; line-height: 1.5; }

.form-field-group-error .form-field-label { color: #e74c3c; }

.form-field-group-error .form-field-input-wrapper input, .form-field-group-error .form-field-input-wrapper select, .form-field-group-error .form-field-input-wrapper textarea { border-color: rgba(231, 76, 60, 0.5); }

.form-field-group-error .form-field-input-wrapper input:focus, .form-field-group-error .form-field-input-wrapper select:focus, .form-field-group-error .form-field-input-wrapper textarea:focus { border-color: #e74c3c; box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1); }

.form-field-error { margin-top: 0.4rem; }

.form-field-error span { display: block; color: #e74c3c; font-size: 0.8rem; animation: error-appear 0.3s ease both; }

.form-field-group:focus-within .form-field-label { color: #3bbf65; }

.form-button { display: flex; justify-content: center; width: 100%; margin-top: 1.5rem; }

@media (max-width: 576px) { .form-button { padding: 0.75rem 1.5rem; } }

.form-button-danger { background: linear-gradient(135deg, #e74c3c 0%, #ed7669 100%); }

.form-button-danger:hover { background: linear-gradient(135deg, #e74c3c 0%, #df2e1b 100%); box-shadow: 0 8px 32px rgba(231, 76, 60, 0.25), 0 0 40px rgba(231, 76, 60, 0.1); }

.form-button-danger:active { box-shadow: 0 4px 16px rgba(231, 76, 60, 0.2); }

.form-button-group { display: flex; gap: 0.75rem; margin-top: 1.5rem; }

.form-button-narrow { flex: 1; width: auto; }

.form-card-footer { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.5rem; margin-bottom: -1rem; padding-top: 1.5rem; text-align: center; border-top: 1px solid rgba(0, 0, 0, 0.08); }

@media (max-width: 576px) { .form-card-footer { margin-bottom: -0.5rem; } }

.form-footer-link { color: #555; text-decoration: none; font-size: 0.88rem; transition: color 0.2s ease; }

.form-footer-link:hover { color: #3bbf65; }

.form-card-description { margin-bottom: 1.25rem; color: #555; line-height: 1.7; font-size: 0.9rem; }

.form-card-description-danger { color: #e74c3c; }

.form-progress { width: 100%; height: 8px; margin-top: 1rem; background: rgba(0, 0, 0, 0.06); border-radius: 4px; overflow: hidden; }

.form-progress-bar { width: 0%; height: 100%; background: linear-gradient(90deg, #3bbf65, #5bddaa); border-radius: 4px; transition: width 0.3s ease; }

.form-progress-text { margin-top: 0.5rem; color: #888; font-size: 0.82rem; }

.form-message { white-space: pre-line; margin-top: 0.75rem; color: #555; font-size: 0.88rem; }

.form-image-preview { display: none; max-width: 100%; margin-top: 1rem; border-radius: 12px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); }

.form-image-preview.visible { display: block; }

.form-field-shake { animation: shake-horizontal 0.4s ease; }
