﻿body {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
}

/* Hero Section */
.hero-section {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    animation: float 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
    animation: float 10s ease-in-out infinite reverse;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 50px 40px;
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    color: #ddd;
}

.hero-icon {
    font-size: 100px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.hero-title {
    font-size: 45px;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 30px 0;
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease-out;
    letter-spacing: -1px;
    -webkit-text-stroke: 0.55px #625f5f;
}

.hero-subtitle {
    font-size: 32px;
    color: #ffffff;
    margin: 0 0 30px 0;
    animation: fadeInUp 1.2s ease-out;
    font-weight: 600;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 19px;
    color: #ffffff;
    line-height: 1.9;
    margin: 0 0 40px 0;
    opacity: 0.98;
    animation: fadeInUp 1.4s ease-out;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.tilte {
    font-size: 19px;
    color: #ffffff;
    margin: 0 0 40px 0;
    opacity: 0.98;
    animation: fadeInUp 1.4s ease-out;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 0px;
    left: 44%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    font-size: 40px;
    color: #059669;
    opacity: 0.8;
}

.scroll-text {
    color: #059669;
    font-size: 14px;
    margin-top: 10px;
    opacity: 0.9;
    font-weight: bold;
}

/* Features Section */
.features-section {
    padding: 20px 20px;
    background: #ffffff;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.features-title {
    font-size: 42px;
    font-weight: bold;
    color: #2d3748;
    text-align: center;
    margin: 0 0 20px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 10px;
}

.feature-card {
    background: #ffffff;
    padding: 15px 10px;
    border-radius: 24px;
    text-align: center;
    color: #2d3748;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #10b981 0%, #059669 50%, #047857 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease-out;
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.25);
    border-color: #10b981;
}

.feature-icon {
    font-size: 60px;
    margin-bottom: 10px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(16, 185, 129, 0.3));
    padding-top:13px
}

.feature-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #1e293b;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-desc {
    font-size: 16px;
    opacity: 0.8;
    margin: 0;
    line-height: 1.7;
    color: #475569;
}

/* Flow Section */
.flow-section {
    padding: 20px 20px;
    background: #f7fafc;
}

.flow-container {
    max-width: 1400px;
    margin: 0 auto;
}

.flow-header {
    text-align: center;
    margin-bottom: 20px;
}

.flow-main-title {
    font-size: 42px;
    font-weight: bold;
    color: #2d3748;
}

.flow-main-subtitle {
    font-size: 18px;
    color: #6b7280;
    margin: 0;
}

/* Flow Steps - Alternating Layout */
.flow-step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    /*margin-bottom: 40px;*/
    align-items: center;
    opacity: 0;
    transform: translateX(-50px);
}

.flow-step.visible {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.flow-step.reverse {
    direction: rtl;
    /* transform: translateX(50px); */
}

.flow-step.reverse > * {
    direction: ltr;
}

.flow-visual {
    position: relative;
}

.flow-content {
    padding: 20px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border-radius: 20px;
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    position: absolute;
}

.step-number::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    opacity: 0.3;
    animation: pulse 2s ease-in-out infinite;
}

.step-title {
    font-size: 36px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 20px 0;
    line-height: 1.3;
    padding-left: 90px;
}

.step-desc {
    font-size: 18px;
    color: #64748b;
    line-height: 1.9;
    margin: 20px 0;
    background: linear-gradient(to right, #64748b 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-top: 20px;
}

/* Mobile Screen Design */
.mobile-device {
    background: linear-gradient(145deg, #1e293b 0%, #334155 100%);
    border-radius: 50px;
    padding: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 420px;
    margin: 0 auto;
    position: relative;
    border: 3px solid #475569;
}

.mobile-device::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 8px;
    background: linear-gradient(90deg, #64748b 0%, #475569 100%);
    border-radius: 20px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mobile-screen {
    background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
    border-radius: 35px;
    padding: 5px 15px 15px 15px;
    min-height: 540px;
    overflow: hidden;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0f2fe;
}

.form-icon {
    font-size: 70px;
    margin-bottom: 15px;
    filter: drop-shadow(0 5px 15px rgba(14, 165, 233, 0.3));
    animation: float 3s ease-in-out infinite;
    margin-top: 15px;
}

.form-title {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 10px 0;
}

.form-subtitle {
    font-size: 15px;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

.form-field {
    margin-bottom: 10px;
}

.form-label {
    font-size: 16x;
    color: #334155;
    margin-bottom: 10px;
    display: block;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* .form-input {
      width: 100%;
      padding: 14px 18px;
      border: 2px solid #e2e8f0;
      border-radius: 14px;
      font-size: 15px;
      box-sizing: border-box;
      transition: all 0.3s ease;
      background: #ffffff;
      box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    } */

.form-input {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-input:focus {
    outline: none;
    border-color: #10b981;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1), 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.form-select {
    width: 100%;
    padding: 5px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    font-weight: 600;
}

.form-select:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.submit-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5);
}

.submit-btn:active {
    transform: translateY(-1px);
}

/* Alert Box */
.alert-box {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    padding: 15px 25px;
    border-radius: 35px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 25px 60px rgba(239, 68, 68, 0.5);
    max-width: 550px;
    margin: 0 auto;
    animation: pulse 2s ease-in-out infinite;
    border: 4px solid #fca5a5;
    position: relative;
    overflow: hidden;
}

.alert-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255, 255, 255, 0.05) 20px, rgba(255, 255, 255, 0.05) 40px);
    pointer-events: none;
}

.alert-icon {
    font-size: 60px;
    margin-bottom: 10px;
    animation: shake 0.5s ease-in-out infinite;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 1;
}

.alert-title {
    font-size: 36px;
    font-weight: 900;
    margin: 0 0 18px 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
}

.alert-desc {
    font-size: 19px;
    margin: 0;
    opacity: 0.98;
    line-height: 1.6;
    font-weight: 600;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

/* Phone Call Circle */
.call-circle-container {
    position: relative;
    width: 552px;
    height: 546px;
    margin: 0 auto;
}

.center-station {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 170px;
    height: 170px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 50px rgba(16, 185, 129, 0.6), 0 0 0 8px rgba(16, 185, 129, 0.2);
    z-index: 10;
    animation: pulse 2s ease-in-out infinite;
    border: 5px solid #ffffff;
}

.station-icon {
    font-size: 60px;
    margin-top: -30px;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
}

.station-text {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.call-line {
    position: absolute;
    top: 80%;
    left: 65%;
    width: 2px;
    height: 150px;
    background: linear-gradient(180deg, #10b981 0%, transparent 100%);
    transform-origin: top center;
    animation: lineGrow 1s ease-out forwards;
    z-index: 1;
}

.caller-node {
    position: absolute;
    width: 130px;
    height: 130px;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border: 2px solid #10b981;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: scale(0);
    animation: nodeAppear 0.6s ease-out forwards;
    z-index: 5;
}

.caller-node:hover {
    transform: scale(1.15);
    box-shadow: 0 15px 45px rgba(16, 185, 129, 0.6);
    border-color: #059669;
    border-width: 5px;
}

.caller-node-icon {
    font-size: 40px;
    margin-bottom: 6px;
    animation: ring 1.5s ease-in-out infinite;
    filter: drop-shadow(0 3px 8px rgba(16, 185, 129, 0.3));
}

.caller-node-name {
    font-size: 12px;
    font-weight: 800;
    color: #0c4a6e;
    text-align: center;
    margin: 0;
    letter-spacing: 0.3px;
}

/* Phone Call Grid */
.phone-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.phone-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 3px solid #10b981;
}

.phone-icon {
    font-size: 50px;
    margin-bottom: 10px;
    animation: ring 1.5s ease-in-out infinite;
}

.phone-name {
    font-size: 16px;
    font-weight: bold;
    color: #2d3748;
    margin: 0 0 5px 0;
}

.phone-number {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

/* Download App Section */
.download-box {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    padding: 20px 5px;
    border-radius: 35px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(16, 185, 129, 0.3);
    max-width: 650px;
    margin: 0 auto;
    border: 4px solid #10b981;
    position: relative;
    overflow: hidden;
}

.download-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.download-icon {
    font-size: 60px;
    margin-bottom: 5px;
    padding-top: 15px;
    animation: bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 8px 20px rgba(16, 185, 129, 0.4));
    position: relative;
    z-index: 1;
}

.download-title {
    font-size: 36px;
    font-weight: 900;
    color: #064e3b;
    margin: 0 0 10px 0;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.download-desc {
    font-size: 19px;
    color: #047857;
    margin: 0 0 10px 0;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.download-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 35px;
    background: #ffffff;
    border: 3px solid #10b981;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.25);
    min-width: 220px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: -1;
}

.download-btn:hover::before {
    transform: scaleX(1);
}

.download-btn:hover {
    transform: translateY(-7px) scale(1.03);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.45);
    border-color: #0284c7;
}

.download-btn:hover .download-btn-text {
    color: #e0f2fe;
}

.download-btn:hover .download-btn-platform {
    color: #ffffff;
}

.download-btn-icon {
    font-size: 55px;
    transition: transform 0.3s ease;
}

.download-btn:hover .download-btn-icon {
    transform: scale(1.15) rotate(5deg);
}

.download-btn-content {
    text-align: left;
}

.download-btn-text {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 4px 0;
    transition: color 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.download-btn-platform {
    font-size: 22px;
    font-weight: 800;
    color: #0c4a6e;
    margin: 0;
    transition: color 0.3s ease;
}

/* Confirmation Box */
.confirm-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 0px 45px 25px;
    border-radius: 35px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(245, 158, 11, 0.5);
    max-width: 550px;
    margin: 0 auto;
    border: 5px solid #fbbf24;
    animation: pulseGlow 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.confirm-box::before {
    content: '⚡';
    position: absolute;
    font-size: 150px;
    opacity: 0.08;
    top: -30px;
    right: -30px;
    transform: rotate(-15deg);
}

.confirm-icon {
    font-size: 85px;
    filter: drop-shadow(0 8px 20px rgba(245, 158, 11, 0.4));
    animation: ring 1.5s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.confirm-title {
    font-size: 32px;
    font-weight: 900;
    color: #78350f;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.5);
}

.confirm-desc {
    font-size: 19px;
    color: #92400e;
    margin: 0 0 15px 0;
    font-weight: 600;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.confirm-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    position: relative;
    z-index: 1;
}

.confirm-btn {
    padding: 5px 5px;
    border: none;
    border-radius: 18px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.confirm-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.confirm-btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-safe {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: 3px solid #34d399;
}

.btn-sos {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    border: 3px solid #fca5a5;
}

.confirm-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.confirm-btn:active {
    transform: translateY(-2px) scale(1.02);
}

/* Map Section */
.map-section {
    padding: 40px 20px;
    background: #ffffff;
}

.map-container {
    max-width: 1400px;
    margin: 0 auto;
}

.map-header {
    text-align: center;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
}

.map-header.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease-out;
}

.map-title {
    font-size: 42px;
    font-weight: bold;
    color: #2d3748;
    margin: 0 0 10px 0;
}

.map-subtitle {
    font-size: 18px;
    color: #6b7280;
    margin: 0;
}

.map-wrapper {
    background: #e5e7eb;
    border-radius: 30px;
    padding: 35px 35px 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    min-height: 600px;
    opacity: 0;
    transform: scale(0.9);
}

.map-wrapper.visible {
    opacity: 1;
    transform: scale(1);
    transition: all 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Vietnam Map SVG */
.vietnam-map {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-radius: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-image {
    font-size: 200px;
    opacity: 0.3;
}

/* Map Markers */
.markers-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.map-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: markerAppear 0.6s ease-out forwards;
    cursor: pointer;
    z-index: 1;
}

.map-marker.visible {
    opacity: 1;
}

.marker-pin {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    position: relative;
    animation: bounce 2s ease-in-out infinite;
    border: 3px solid #ffffff;
}

    .marker-pin.safe {
        box-shadow: 0 8px 20px rgba(16, 185, 129, 0.5), 0 0 0 4px rgba(16, 185, 129, 0.2);
    }

.marker-pin.sos {
    animation: pulse 1.5s ease-in-out infinite;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.6), 0 0 0 4px rgba(239, 68, 68, 0.3);
}

.marker-pin.unknown {
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.5), 0 0 0 4px rgba(245, 158, 11, 0.2);
}

.marker-pin::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid currentColor;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}

.marker-info {
    position: absolute;
    top: -135px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 18px 24px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    min-width: 300px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    border: 3px solid #e2e8f0;
}

.marker-info {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.map-marker.active .marker-info {
    opacity: 1;
    pointer-events: auto;
}

.marker-info::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 15px solid #ffffff;
}

.map-marker:hover .marker-info {
    opacity: 1;
    transform: translateX(-50%) translateY(-8px);
}

.map-marker:hover {
    z-index: 9999;
}

.marker-info-name {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.marker-info-detail {
    font-size: 14px;
    color: #475569;
    margin: 5px 0;
    font-weight: 600;
}

.marker-info-status {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 800;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.3px;
}

.marker-info-status.safe {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
}

.marker-info-status.sos {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
}

.marker-info-status.unknown {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
}

/* Legend */
.map-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    background: #ffffff;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    color: #2d3748;
}

.legend-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes float {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%, 100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    }
}

@keyframes shake {

    0%, 100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(10deg);
    }
}

@keyframes ring {

    0%, 100% {
        transform: rotate(0deg);
    }

    10%, 30% {
        transform: rotate(-15deg);
    }

    20%, 40% {
        transform: rotate(15deg);
    }
}

@keyframes markerAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }

    60% {
        transform: translate(-50%, -50%) scale(1.2);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulseGlow {

    0%, 100% {
        box-shadow: 0 20px 50px rgba(245, 158, 11, 0.4), 0 0 0 0 rgba(245, 158, 11, 0.7);
    }

    50% {
        box-shadow: 0 25px 60px rgba(245, 158, 11, 0.6), 0 0 30px 10px rgba(245, 158, 11, 0.4);
    }
}

@keyframes lineGrow {
    from {
        height: 0;
    }

    to {
        height: 150px;
    }
}

@keyframes nodeAppear {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    70% {
        transform: scale(1.15);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 968px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .flow-step {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .flow-step.reverse {
        direction: ltr;
        transform: translateX(0px) !important;
    }

    .step-title {
        font-size: 24px;
    }

    .phone-grid {
        grid-template-columns: 1fr;
    }

    .confirm-buttons {
        grid-template-columns: 1fr;
    }
}

.form-field-checkbox {
    display: flex;
    flex-wrap: wrap;
}

.form-field-checkbox label {
    width: 50%;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

@media (max-width: 480px) {
    .form-field {
        grid-template-columns: 1fr;
    }
}

.form-field-checkbox input[type='checkbox'] {
    margin-right: 5px;
}

.textarea {
    margin-top: 0px !important;
}

.red {
    color: red;
}

.location-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.location-btn {
    width: 100%;
    height: 44px;
    border-radius: 22px;
    border: 1px solid #dcdcdc;
    background-color: #f2f3f3;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    cursor: pointer;
}

.location-btn:hover {
    background-color: #e9eaea;
}

.location-btn:active {
    background-color: #dedede;
}

.icon {
    font-size: 16px;
}

@media (max-width: 480px) {
    .call-circle-container {
        transform: scale(0.68);
    }

    .call-circle-container {
        left: 7%;
    }
}

@media (max-width: 768px) {
    .call-circle-container {
        transform: scale(0.68);
        transform-origin: center left;
        aspect-ratio: 1 / 1;
    }

    .flow-visual {
        overflow: visible;
    }

    .flow-step {
        justify-items: center;
        /* text-align: center; */
    }

    .flow-content {
        padding: 20px;
        max-width: 390px;
        overflow: visible !important;
    }

    .flow-step.call {
        display: block;
    }

    .scroll-indicator {
        display: none;
    }
}

@view-transition {
    navigation: auto;
}

.call-custom {
    margin-top: -90px !important;
}

.hero-icon {
   padding-top: 40px;
}

.hero-icon img {
    display: block;
    margin: 0 auto;
}

/* Khối tổng */
.flow-step.call {
    display: grid;
    grid-template-columns: 1fr 1fr; /* desktop 2 cột */
    align-items: center; /* canh giữa theo trục dọc */
    justify-items: center; /* canh giữa theo trục ngang */
    gap: 40px;
    width: 100%;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Visual và content đều canh giữa */
    .flow-step.call .flow-visual
   {
        display: flex ;
        justify-content: center ;
        align-items: center ;
        text-align: center ;
        width: 100% ;
    }

/* Content cho đẹp hơn */
    .flow-step.call .flow-content {
        flex-direction: column ;
        max-width: 520px ;
    }

/* 📱 Mobile */
@media (max-width: 768px) {
    .flow-step.call {
        grid-template-columns: 1fr ; /* 1 cột */
        gap: 24px ;
    }

        .flow-step.call .flow-visual {
            width: 100%;
            position: relative;
            overflow: hidden;
            max-width: 100%;
        }
    .marker-info {
        min-width: 240px !important;
        padding: 15px 14px !important;
    }

    .flow-step.confirmation{
        padding:0rem !important;
    }

    .flow-step.call flow-content {
        padding: 0px;
    }
    }

#step3Title{
    padding-left: 0px !important;
}

.download-icon>img, .alert-icon>img, .confirm-icon>img{
    margin: 0 auto;
    height: 100px;
}

