/* Reset and Base Styles */
.fm_body {
    line-height: 1.6;
    color: #333;
    background: #f8fafc;
}

/* Color Variables */
:root {
    --fm-primary-color: #fe5940;
    --fm-secondary-color: #1a237e;
    --fm-dark-color: #000b36;
    --fm-light-bg: #f8fafc;
    --fm-white: #ffffff;
    --fm-gray-100: #f7fafc;
    --fm-gray-200: #edf2f7;
    --fm-gray-300: #e2e8f0;
    --fm-gray-400: #cbd5e0;
    --fm-gray-500: #a0aec0;
    --fm-gray-600: #718096;
    --fm-gray-700: #4a5568;
    --fm-gray-800: #2d3748;
    --fm-gray-900: #1a202c;
    --fm-success-color: #48bb78;
    --fm-error-color: #f56565;
    --fm-warning-color: #ed8936;
}

/* Main Container */
.fm_api-registration-container {
    max-width: 100%;
    margin: 0 auto;
}

/* reCAPTCHA Styling */
.fm_g-recaptcha {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .fm_g-recaptcha {
        transform: scale(0.85);
        transform-origin: center;
    }
}

/* Landing Section */
.fm_landing-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--fm-secondary-color) 0%, var(--fm-dark-color) 100%);
    color: var(--fm-white);
    position: relative;
    overflow: hidden;
}

.fm_landing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="500" cy="500" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="200" cy="200" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="800" cy="300" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="300" cy="800" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="700" cy="700" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: fm_float 20s ease-in-out infinite;
}

@keyframes fm_float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.fm_hero-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 1;
    position: relative;
}

.fm_hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.fm_hero-text .fm_highlight {
    color: var(--fm-primary-color);
    position: relative;
}

.fm_hero-text .fm_highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--fm-primary-color);
    border-radius: 2px;
}

.fm_hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.fm_features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.fm_feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.fm_feature-item i {
    color: var(--fm-primary-color);
    font-size: 1.2rem;
}

.fm_hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.fm_btn-primary {
    background: var(--fm-primary-color);
    color: var(--fm-white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.fm_btn-primary:hover {
    background: #e74c3c;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(254, 89, 64, 0.3);
}

.fm_btn-secondary {
    background: transparent;
    color: var(--fm-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.fm_btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--fm-white);
    transform: translateY(-2px);
}

/* Hero Visual - Fixed Animation */
.fm_hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.fm_api-showcase {
    position: relative;
    width: 300px;
    height: 300px;
}

.fm_api-icon.fm_central {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: var(--fm-primary-color);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--fm-white);
    box-shadow: 0 20px 40px rgba(254, 89, 64, 0.3);
    z-index: 2;
}

.fm_floating-icons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.fm_icon-item {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--fm-white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--fm-secondary-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: fm_orbit 15s linear infinite;
    transform-origin: 150px 150px;
}

.fm_icon-item:nth-child(1) { 
    animation-delay: 0s;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
}
.fm_icon-item:nth-child(2) { 
    animation-delay: 2.5s;
    top: 25%;
    right: -30px;
}
.fm_icon-item:nth-child(3) { 
    animation-delay: 5s;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
}
.fm_icon-item:nth-child(4) { 
    animation-delay: 7.5s;
    top: 25%;
    left: -30px;
}
.fm_icon-item:nth-child(5) { 
    animation-delay: 10s;
    top: 75%;
    right: 15%;
}
.fm_icon-item:nth-child(6) { 
    animation-delay: 12.5s;
    top: 75%;
    left: 15%;
}

@keyframes fm_orbit {
    0% { 
        transform: rotate(0deg) translateX(120px) rotate(0deg); 
    }
    100% { 
        transform: rotate(360deg) translateX(120px) rotate(-360deg); 
    }
}

/* APIs Section */
.fm_apis-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.fm_section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.fm_section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--fm-gray-800);
    margin-bottom: 1rem;
}

.fm_section-header p {
    font-size: 1.2rem;
    color: var(--fm-gray-600);
}

.fm_apis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.fm_api-card {
    background: var(--fm-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--fm-gray-200);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.fm_api-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--fm-primary-color), var(--fm-secondary-color));
}

.fm_api-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--fm-primary-color);
}

.fm_api-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.fm_api-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--fm-gray-800);
}

.fm_api-id {
    background: var(--fm-gray-100);
    color: var(--fm-gray-600);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.fm_api-card p {
    color: var(--fm-gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.fm_plans-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.fm_plan-tag {
    background: var(--fm-primary-color);
    color: var(--fm-white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* API Card Action Buttons */
.fm_api-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.fm_api-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.fm_api-btn-primary {
    background: var(--fm-primary-color);
    color: var(--fm-white);
    border: 2px solid var(--fm-primary-color);
}

.fm_api-btn-primary:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    transform: translateY(-1px);
}

.fm_api-btn-secondary {
    background: transparent;
    color: var(--fm-primary-color);
    border: 2px solid var(--fm-primary-color);
}

.fm_api-btn-secondary:hover {
    background: var(--fm-primary-color);
    color: var(--fm-white);
    transform: translateY(-1px);
}

/* Modal Styles - Fixed for Mobile */
.fm_modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    overflow-y: auto;
}

.fm_modal-content {
    background: var(--fm-white);
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    animation: fm_modalSlideIn 0.3s ease;
    margin: auto;
}

@keyframes fm_modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.fm_modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--fm-gray-200);
}

.fm_modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--fm-gray-800);
}

.fm_close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--fm-gray-500);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fm_close-btn:hover {
    background: var(--fm-gray-100);
    color: var(--fm-gray-700);
}

/* Form Styles */
.fm_registration-form {
    padding: 2rem;
}

.fm_form-group {
    margin-bottom: 1.5rem;
}

.fm_form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--fm-gray-700);
}

.fm_form-group input,
.fm_form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--fm-gray-300);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.fm_form-group input:focus,
.fm_form-group select:focus {
    outline: none;
    border-color: var(--fm-primary-color);
    box-shadow: 0 0 0 3px rgba(254, 89, 64, 0.1);
}

/* Custom API Dropdown */
.fm_api-search-container {
    position: relative;
}

.fm_api-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--fm-gray-300);
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    background: var(--fm-white);
    position: relative;
    box-sizing: border-box;
}

.fm_api-search-input:focus {
    outline: none;
    border-color: var(--fm-primary-color);
    box-shadow: 0 0 0 3px rgba(254, 89, 64, 0.1);
}

.fm_api-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--fm-white);
    border: 2px solid var(--fm-gray-300);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.fm_api-option {
    padding: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--fm-gray-200);
}

.fm_api-option:last-child {
    border-bottom: none;
}

.fm_api-option:hover {
    background: var(--fm-gray-100);
}

.fm_api-option-name {
    font-weight: 600;
    color: var(--fm-gray-800);
    margin-bottom: 0.25rem;
}

.fm_api-option-description {
    font-size: 0.9rem;
    color: var(--fm-gray-600);
}

/* Email Verification */
.fm_email-verification-container {
    display: flex;
    gap: 0.5rem;
}

.fm_email-verification-container input {
    flex: 1;
}

.fm_verify-btn {
    background: var(--fm-success-color);
    color: var(--fm-white);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.fm_verify-btn:hover {
    background: #38a169;
}

.fm_verify-btn:disabled {
    background: var(--fm-gray-400);
    cursor: not-allowed;
}

.fm_verification-section {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--fm-gray-100);
    border-radius: 8px;
}

.fm_verification-input-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.fm_verification-input-container input {
    flex: 1;
    text-align: center;
}

.fm_resend-btn {
    background: var(--fm-gray-500);
    color: var(--fm-white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.fm_resend-btn:hover:not(:disabled) {
    background: var(--fm-gray-600);
}

.fm_resend-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fm_verification-success {
    color: var(--fm-success-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Error Message */
.fm_error-message {
    color: var(--fm-error-color);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

/* Country Search */
.fm_country-search-container {
    position: relative;
}

.fm_country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--fm-white);
    border: 2px solid var(--fm-gray-300);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.fm_country-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.fm_country-option:hover {
    background: var(--fm-gray-100);
}

.fm_country-name {
    font-weight: 500;
}

.fm_country-code {
    color: var(--fm-gray-600);
    font-size: 0.9rem;
}

/* Plans Container */
.fm_plans-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.fm_plan-box {
    border: 2px solid var(--fm-gray-300);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--fm-white);
}

.fm_plan-box:hover {
    border-color: var(--fm-primary-color);
    box-shadow: 0 4px 12px rgba(254, 89, 64, 0.15);
}

.fm_plan-box.fm_selected {
    border-color: var(--fm-primary-color);
    background: var(--fm-primary-color);
    color: var(--fm-white);
}

.fm_plan-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.fm_plan-description {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Consent - Fixed Checkbox */
.fm_consent-group {
    margin: 2rem 0;
}

.fm_checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    line-height: 1.5;
}

.fm_checkbox-container input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

.fm_checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--fm-gray-400);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: var(--fm-white);
}

.fm_checkbox-container input[type="checkbox"]:checked + .fm_checkmark {
    background: var(--fm-primary-color);
    border-color: var(--fm-primary-color);
}

.fm_checkbox-container input[type="checkbox"]:checked + .fm_checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--fm-white);
    font-weight: bold;
    font-size: 14px;
}

.fm_consent-text {
    color: var(--fm-gray-700);
}

.fm_consent-text a {
    color: var(--fm-primary-color);
    text-decoration: none;
}

.fm_consent-text a:hover {
    text-decoration: underline;
}

/* Submit Button */
.fm_submit-btn {
    width: 100%;
    background: var(--fm-primary-color);
    color: var(--fm-white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.fm_submit-btn:hover:not(:disabled) {
    background: #e74c3c;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(254, 89, 64, 0.3);
}

.fm_submit-btn:disabled {
    background: var(--fm-gray-400);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.fm_loading-spinner {
    display: none;
}

.fm_loading-spinner i {
    font-size: 1.2rem;
}

/* Processing Status */
.fm_processing-status {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--fm-gray-100);
    border-radius: 12px;
    display: none;
}

.fm_status-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    color: var(--fm-gray-600);
    transition: all 0.3s ease;
}

.fm_status-step i {
    width: 24px;
    text-align: center;
    color: var(--fm-gray-400);
}

.fm_status-step.fm_active {
    color: var(--fm-primary-color);
    font-weight: 600;
}

.fm_status-step.fm_active i {
    color: var(--fm-primary-color);
}

.fm_status-step.fm_completed {
    color: var(--fm-success-color);
}

.fm_status-step.fm_completed i {
    color: var(--fm-success-color);
}

/* Success Modal */
.fm_success-content {
    max-width: 550px;
    text-align: center;
}

.fm_success-header {
    padding: 2rem;
    background: linear-gradient(135deg, var(--fm-secondary-color), var(--fm-dark-color));
    color: var(--fm-white);
    border-radius: 20px 20px 0 0;
}

.fm_success-header i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.fm_success-header h2 {
    margin: 0;
    font-size: 1.8rem;
}

.fm_success-details {
    padding: 2rem;
}

.fm_success-message {
    margin-bottom: 2rem;
}

.fm_success-message p {
    color: var(--fm-gray-600);
    line-height: 1.6;
    font-size: 1.1rem;
}

.fm_credentials-box {
    background: var(--fm-gray-100);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 2px solid var(--fm-gray-200);
}

.fm_credential-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--fm-gray-300);
}

.fm_credential-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.fm_credential-item label {
    font-weight: 600;
    color: var(--fm-gray-700);
}

.fm_credential-value {
    font-family: monospace;
    font-size: 1rem;
    color: var(--fm-primary-color);
    font-weight: 700;
    background: var(--fm-white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid var(--fm-gray-300);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 250px;
    word-break: break-all;
}

.fm_copy-btn {
    background: var(--fm-primary-color);
    color: var(--fm-white);
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.fm_copy-btn:hover {
    background: #e74c3c;
}

.fm_copy-btn.fm_copied {
    background: var(--fm-secondary-color);
}

/* Mobile Responsive - Fixed for Better Mobile Experience */
@media (max-width: 768px) {
    .fm_hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .fm_hero-text h1 {
        font-size: 2.5rem;
    }
    
    .fm_hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .fm_apis-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile Modal Fixes */
    .fm_modal {
        padding: 0.5rem;
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    .fm_modal-content {
        max-width: 100%;
        max-height: 90vh;
        margin: 0;
        border-radius: 16px;
    }
    
    .fm_modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .fm_modal-header h2 {
        font-size: 1.3rem;
    }
    
    .fm_registration-form {
        padding: 1.5rem;
    }
    
    .fm_features-grid {
        grid-template-columns: 1fr;
    }
    
    .fm_plans-container {
        grid-template-columns: 1fr;
    }
    
    .fm_api-actions {
        flex-direction: column;
    }
    
    .fm_credential-value {
        max-width: 200px;
        font-size: 0.9rem;
    }
    
    /* Email verification container on mobile */
    .fm_email-verification-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .fm_verify-btn {
        width: 100%;
        text-align: center;
    }
    
    /* Verification input container on mobile */
    .fm_verification-input-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .fm_resend-btn {
        width: 100%;
    }
    
    /* API showcase animation fix for mobile */
    .fm_api-showcase {
        width: 250px;
        height: 250px;
    }
    
    .fm_api-icon.fm_central {
        width: 100px;
        height: 100px;
        font-size: 1.5rem;
    }
    
    .fm_icon-item {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    @keyframes fm_orbit {
        0% { 
            transform: rotate(0deg) translateX(100px) rotate(0deg); 
        }
        100% { 
            transform: rotate(360deg) translateX(100px) rotate(-360deg); 
        }
    }
}

@media (max-width: 480px) {
    .fm_hero-text h1 {
        font-size: 2rem;
    }
    
    .fm_section-header h2 {
        font-size: 2rem;
    }
    
    .fm_modal {
        padding: 0.25rem;
        padding-top: 1rem;
    }
    
    .fm_modal-content {
        border-radius: 12px;
    }
    
    .fm_modal-header {
        padding: 1rem 1rem 0.5rem;
    }
    
    .fm_modal-header h2 {
        font-size: 1.2rem;
    }
    
    .fm_registration-form {
        padding: 1rem;
    }
    
    .fm_success-header {
        padding: 1.5rem;
    }
    
    .fm_success-details {
        padding: 1.5rem;
    }
    
    .fm_credential-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .fm_credential-value {
        max-width: 100%;
        width: 100%;
    }
    
    /* Smaller API showcase for very small screens */
    .fm_api-showcase {
        width: 200px;
        height: 200px;
    }
    
    .fm_api-icon.fm_central {
        width: 80px;
        height: 80px;
        font-size: 1.2rem;
    }
    
    .fm_icon-item {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    @keyframes fm_orbit {
        0% { 
            transform: rotate(0deg) translateX(80px) rotate(0deg); 
        }
        100% { 
            transform: rotate(360deg) translateX(80px) rotate(-360deg); 
        }
    }
}

/* Landscape Mobile Fixes */
@media (max-width: 768px) and (orientation: landscape) {
    .fm_modal {
        align-items: flex-start;
        padding-top: 1rem;
    }
    
    .fm_modal-content {
        max-height: 85vh;
    }
}

/* Prevent horizontal scroll */
.fm_modal-content,
.fm_registration-form,
.fm_modal-header {
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Additional mobile form fixes */
@media (max-width: 768px) {
    .fm_form-group input,
    .fm_form-group select,
    .fm_api-search-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .fm_checkbox-container {
        align-items: flex-start;
        padding: 0.5rem 0;
    }
    
    .fm_consent-text {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}