.msf-container {
    --primary: #d8532f;
    --primary-hover: #c04523;
    --primary-ring: rgba(216, 83, 47, 0.18);
    --text-main: #111827;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --bg-card: #ffffff;

    font-family: 'Inter', sans-serif;
    width: 100%;
    max-width: 880px;
    margin: 1.5rem auto;
    box-sizing: border-box;
}

.msf-container * {
    box-sizing: border-box;
}

.msf-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04),
        0 12px 24px -4px rgba(0, 0, 0, 0.06);
}

.msf-header {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 1.5rem;
}

.msf-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: var(--primary);
    color: #ffffff !important;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(216, 83, 47, 0.25);
    line-height: 1;
}

.msf-header-text h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.015em;
    line-height: 1.3;
    margin: 0 0 0.25rem 0;
}

.msf-header-text p {
    font-size: 0.925rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.45;
}

.msf-row {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

@media (max-width: 480px) {
    .msf-row {
        flex-direction: column;
    }
}

.msf-input-wrapper {
    position: relative;
    flex: 1;
}

.msf-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #9ca3af;
    pointer-events: none;
    transition: color 0.15s ease;
}

.msf-input {
    width: 100% !important;
    height: 48px !important;
    padding: 0 1rem 0 2.75rem !important;
    font-size: 0.95rem !important;
    font-family: inherit !important;
    color: var(--text-main) !important;
    background-color: #ffffff !important;
    border: 1.5px solid var(--border-color) !important;
    border-radius: 10px !important;
    outline: none !important;
    transition: all 0.2s ease-in-out !important;
}

.msf-input::placeholder {
    color: #9ca3af;
}

.msf-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px var(--primary-ring) !important;
}

.msf-input-wrapper:focus-within .msf-input-icon {
    color: var(--primary);
}

html body .msf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 48px;
    padding: 0 1.5rem;
    background-color: var(--primary);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(216, 83, 47, 0.2);
    text-decoration: none;
}

.msf-btn:hover {
    background-color: var(--primary-hover) !important;
    box-shadow: 0 4px 12px rgba(216, 83, 47, 0.35) !important;
    transform: translateY(-1px);
}

.msf-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(216, 83, 47, 0.2) !important;
}

.msf-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.15s ease;
}

.msf-btn:hover svg {
    transform: translateX(2px);
}

/* Submitted Confirmed State */
.msf-confirmed-state {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    min-height: 48px;
}

.msf-confirmed-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #334155;
}

.msf-confirmed-check {
    color: #16a34a;
    font-weight: 700;
    font-size: 1rem;
}

html body .msf-change-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s ease;
}

.msf-change-btn:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.msf-success-note {
    display: none;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    padding-left: 0.25rem;
}

#moosend-message {
    font-size: 0.875rem;
    color: #dc2626;
    margin-top: 0.5rem;
}