/* General Form */
.ypt-form {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
    font-family: 'Arial', sans-serif;
}

.ypt-form label {
    display: block;
    margin: 15px 0 5px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

/* Input Fields */
.ypt-form input[type="text"],
.ypt-form input[type="number"],
.ypt-form input[type="tel"],
.ypt-form input[type="file"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #0ff;
    border-radius: 25px;
    background: transparent;
    color: #000 !important;
    font-size: 16px;
    text-align: center;
    outline: none;
    box-shadow: 0 0 10px #0ff;
    transition: all 0.3s ease-in-out;
}

.ypt-form input:focus {
    box-shadow: 0 0 20px #0ff;
    border-color: #00f6ff;
}
 .ypt-result div {
  color: #fff !important;
 }

/* Radio Buttons (Level Selection) */
.ypt-level {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
}
.ypt-form input[type="text"], .ypt-form input[type="number"], .ypt-form input[type="tel"], .ypt-form input[type="file"]{
	color: #000 !important;
}
.ypt-level label {
    font-size: 16px;
    color: #fff;
    cursor: pointer;
}

.ypt-level input[type="radio"] {
    margin-right: 8px;
}

/* Submit Button */
.ypt-btn {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background: linear-gradient(90deg, #ff8c00, #ffb400);
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.8);
    transition: all 0.3s ease-in-out;
}

.ypt-btn:hover {
    background: linear-gradient(90deg, #ffb400, #ff8c00);
    box-shadow: 0 0 30px rgba(255, 140, 0, 1);
}

/* Container should be relative */
.iti {
    position: relative !important;
    width: 100% !important;
}

/* Phone input styling */
.iti input {
    width: 100% !important;
    padding-left: 52px !important;
    /* space for flag */
    border-radius: 8px;
    border: 1px solid #ccc;
    height: 45px;
}

/* Dropdown list proper popup ho */
.iti__country-list {
    max-height: 250px !important;
    overflow-y: auto !important;
    background: #222 !important;
    color: #fff !important;
    border: 1px solid #555;
    border-radius: 6px;
    z-index: 99999 !important;
    /* default hidden */
}

/* Jab dropdown open ho */
.iti.iti--open .iti__country-list {
    display: block !important;
}

/* === Result Page Styling === */
.ypt-result-wrapper {
    background: #0b0c10;
    color: #fff;
    padding: 40px 20px;
    border-radius: 20px;
    text-align: center;
    animation: fadeIn 0.8s ease-in-out;
}
.ypt-result-title {
    font-size: 28px;
    color: #00c2d1;
    margin-bottom: 10px;
}
.ypt-result-sub {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 30px;
}
.ypt-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    justify-content: center;
}
.ypt-result-card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,194,209,0.15);
    transition: all 0.3s ease;
}
.ypt-result-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 30px rgba(255,123,0,0.25);
}
.ypt-card-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.ypt-card-body {
    padding: 20px;
}
.ypt-card-body h3 {
    color: #00c2d1;
    margin-bottom: 10px;
}
.ypt-card-body p {
    font-size: 15px;
    color: #eee;
    line-height: 1.5;
    min-height: 60px;
}
.ypt-meter {
    background: #222;
    border-radius: 10px;
    height: 8px;
    margin-top: 10px;
    overflow: hidden;
}
.ypt-bar {
    height: 8px;
    transition: width 0.6s ease;
}
.ypt-bar.basic { width: 30%; background: #ff7b00; }
.ypt-bar.medium { width: 60%; background: #ffc107; }
.ypt-bar.hard { width: 100%; background: #00c2d1; }

.ypt-next-step {
    text-align: center;
    margin-top: 40px;
}
.ypt-btn.glow {
    background: linear-gradient(90deg, #ff7b00, #ff9e00);
    border: none;
    box-shadow: 0 0 15px rgba(255,123,0,0.6);
    transition: all 0.3s ease;
}
.ypt-btn.glow:hover {
    box-shadow: 0 0 25px rgba(0,194,209,0.8);
    transform: scale(1.05);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {

    /* Fix parent overflow for THIS form only */
    #yptForm {
        overflow: visible !important;
        position: relative !important;
    }

    /* Fix container around phone input */
    #yptForm .iti {
        position: relative !important;
        width: 100% !important;
        z-index: 999 !important;
    }

    /* MAIN FIX — Remove dropup behaviour */
    #yptForm .iti__country-list--dropup {
        top: 100% !important;    /* Force dropdown to open DOWNWARD */
        bottom: auto !important;
    }

    /* Dropdown style + visibility */
    #yptForm .iti__country-list {
        position: absolute !important;
        left: 0 !important;
        width: 100% !important;

        max-height: 300px !important;
        overflow-y: auto !important;

        background: #222 !important;
        color: #fff !important;

        z-index: 999999 !important;
        border: 1px solid #444 !important;
        border-radius: 8px !important;
    }

    /* List items */
    #yptForm .iti__country {
        color: #fff !important;
    }
}
