.fems-container { max-width: 500px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.fems-step { display: none; animation: fadeIn 0.4s ease; }
.fems-step.active, .fems-step:not(.fems-hidden) { display: block; }

.fems-card { position: relative; background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); overflow: hidden; padding: 40px; text-align: center; }
.fems-card-wide { max-width: 600px; }
.fems-bg-overlay { /*position: absolute; top: 0; left: 0; right: 0; /*height: 120px; /*background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%); z-index: 0; /*opacity: 0.8;*/ }

.fems-logo {
	width: 150px;
	margin: 0 auto -25px;
	display: flex; align-items: center; justify-content: center; 
	/*position: absolute; top: 0; left: 0; right: 0; height: 120px;background:#000;*/
}
.fems-logo img{
	z-index: 5; 
}

.fems-card-content { position: relative; z-index: 1; }

.fems-icon { margin: 0 auto 20px; /*background: #fff;*/ width: 120px; height: 120px; /*border-radius: 50%;*/ display: flex; align-items: center; justify-content: center; /*color: #ff69b4;*/ /*box-shadow: 0 4px 10px rgba(0,0,0,0.1);*/ }

.fems-title { margin: 0 0 10px; font-size: 24px; color: #333; }
.fems-subtitle { margin: 0 0 30px; color: #666; font-size: 16px; }
.fems-info { font-size: 13px; color: #999; margin-top: 15px; }

.fems-input-group { display: flex; align-items: center; background: #f5f5f5; border-radius: 8px; padding: 5px; margin-bottom: 20px; border: 2px solid transparent; transition: 0.3s; }
.fems-input-group:focus-within { border-color: #ff69b4; background: #fff; }
.fems-prefix { padding: 0 10px; color: #333; font-weight: bold; }
.fems-input { border: none; background: transparent; width: 100%; padding: 12px; font-size: 16px; outline: none; }

.fems-otp-inputs { display: flex; gap: 10px; justify-content: center; margin-bottom: 25px; }
.fems-otp-box { width: 45px; height: 55px; border: 2px solid #eee; border-radius: 8px; text-align: center; font-size: 24px; font-weight: bold; outline: none; transition: 0.3s; }
.fems-otp-box:focus { border-color: #ff69b4; transform: translateY(-2px); }

.fems-terms-wrapper { margin: 20px 0; text-align: left; border: 1px solid #eee; border-radius: 8px; overflow: hidden; background: #fafafa; }
.fems-checkbox { display: none; }
.fems-terms-label { display: block; padding: 12px 15px; background: #fff; cursor: pointer; font-size: 14px; color: #333; border-bottom: 1px solid #eee; user-select: none; transition: background 0.2s; }
.fems-terms-label:hover { background: #f0f8ff; }
.fems-terms-label::before { content: ''; display: inline-block; width: 18px; height: 18px; border: 2px solid #ccc; border-radius: 4px; margin-right: 8px; vertical-align: middle; transition: all 0.2s; }
.fems-checkbox:checked + .fems-terms-label::before { background-color: #ff69b4; border-color: #ff69b4; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="4"><polyline points="20 6 9 17 4 12"></polyline></svg>'); background-repeat: no-repeat; background-position: center; }
.fems-terms-link { color: #ff69b4; text-decoration: underline; }
.fems-terms-content { display: none; padding: 15px; background: #fff; border-top: 1px solid #eee; }
.fems-checkbox:checked ~ .fems-terms-content { display: block; animation: slideDown 0.3s ease; }
.fems-terms-scroll-area { max-height: 150px; overflow-y: auto; padding-right: 10px; font-size: 12px; line-height: 1.5; color: #555; text-align: justify; }
.fems-terms-scroll-area::-webkit-scrollbar { width: 6px; }
.fems-terms-scroll-area::-webkit-scrollbar-thumb { background-color: #ddd; border-radius: 3px; }
.fems-terms-scroll-area::-webkit-scrollbar-track { background: #f1f1f1; }
.fems-terms-scroll-area h4 { margin: 0 0 10px 0; color: #333; font-size: 13px; }

.fems-btn { width: 100%; padding: 14px; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: 0.3s; position: relative; overflow: hidden; }
.fems-btn-primary { background: #ff69b4; color: #fff; box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3); }
.fems-btn-primary:hover { background: #ff47a3; transform: translateY(-2px); }
.fems-btn-outline { background: transparent; border: 2px solid #ff69b4; color: #ff69b4; margin-top: 10px; }
.fems-btn:disabled { background: #ccc; cursor: not-allowed; transform: none; box-shadow: none; }

.fems-btn-loader { display: none; width: 20px; height: 20px; border: 3px solid rgba(255,255,255,0.3); border-radius: 50%; border-top-color: #fff; animation: spin 1s ease-in-out infinite; position: absolute; left: 50%; top: 50%; margin-left: -10px; margin-top: -10px; }
.fems-btn.loading .fems-btn-text { visibility: hidden; }
.fems-btn.loading .fems-btn-loader { display: block; }

.fems-link-btn { background: none; border: none; color: #ff69b4; cursor: pointer; font-size: 14px; text-decoration: underline; margin-top: 10px; }
.fems-resend-row { margin-top: 15px; font-size: 14px; color: #666; }
.fems-resend-row button { background: none; border: none; color: #ff69b4; font-weight: bold; cursor: pointer; margin-left: 5px; }
.fems-resend-row button:disabled { color: #ccc; cursor: not-allowed; text-decoration: none; }

.fems-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; text-align: left; }
.fems-form-group { margin-bottom: 20px; text-align: left; }
.fems-label { display: block; font-weight: 600; margin-bottom: 8px; color: #555; font-size: 14px; display: flex; align-items: center; gap: 5px; }
.fems-input { width: 100%; padding: 12px; border: 2px solid #eee; border-radius: 8px; box-sizing: border-box; transition: 0.3s; }
.fems-input:focus { border-color: #ff69b4; }

.fems-file-upload { position: relative; }
.fems-file-upload input[type="file"] { display: none; }
.fems-file-label { display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px dashed #ddd; border-radius: 8px; padding: 30px; cursor: pointer; transition: 0.3s; background: #fafafa; }
.fems-file-label:hover { border-color: #ff69b4; background: #fff0f5; }
.fems-file-label svg { margin-bottom: 10px; color: #ff69b4; }
.fems-file-preview { margin-top: 15px; display: none; border-radius: 8px; overflow: hidden; border: 1px solid #eee; }
.fems-file-preview.active { display: block; }
.fems-file-preview img { width: 100%; height: auto; max-height: 200px; object-fit: contain; }
.fems-file-preview-info { padding: 10px; background: #f9f9f9; font-size: 13px; }

.fems-error { color: #e74c3c; font-size: 14px; margin-top: 10px; min-height: 20px; font-weight: 500; display: none; }
.fems-error:not(:empty) { display: block; }

.fems-icon-success { color: #2ecc71; }
.fems-icon-large { width: 100px; height: 100px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 600px) {
    .fems-form-grid { grid-template-columns: 1fr; }
    .fems-card { padding: 25px; }
}

.responsive {
  width: 100%;
  height: auto;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}