/* ========================================
   KLIN360 COMPONENTS - Reusable Styles
   Cards, Grids, Forms, FAQ
   ======================================== */

/* GRID LAYOUTS */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* CARDS */
.card {
    padding: 2.5rem; background: var(--white);
    border: 1px solid var(--grey-300); border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover {
    border-color: var(--yellow); transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}
.bg-dark .card { background: var(--black); border-color: var(--grey-700); }
.bg-dark .card:hover { border-color: var(--yellow); box-shadow: 0 20px 40px rgba(255, 193, 7, 0.15); }
.bg-dark .card p { color: rgba(255, 255, 255, 0.8); }
.bg-dark .card h4, .bg-dark .card h5 { color: var(--white); }

.card-icon {
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
    border-radius: 16px; margin-bottom: 1.5rem;
    color: var(--black); font-size: 26px; font-weight: 700;
}
.card h4 { margin-bottom: 1rem; }
.card p { color: var(--grey-700); font-size: 15px; line-height: 1.7; }

/* PROCESS GRID (3 + 2 centered) */
.process-grid {
    display: grid; grid-template-columns: repeat(6, 1fr);
    gap: 2rem; margin-top: 3rem;
}
.process-item {
    text-align: center; padding: 2.5rem 1.5rem;
    background: var(--white); border-radius: 16px;
    border: 1px solid var(--grey-300); transition: all 0.3s;
    grid-column: span 2;
}
.process-item:hover {
    transform: translateY(-4px); border-color: var(--yellow);
    box-shadow: 0 12px 30px rgba(255, 193, 7, 0.15);
}
.process-item:nth-child(4) { grid-column: 2 / span 2; }
.process-item:nth-child(5) { grid-column: 4 / span 2; }

.process-number {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
    color: var(--black); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 24px; margin: 0 auto 1.5rem;
}
.process-item h5 { margin-bottom: 0.8rem; }
.process-item p { color: var(--grey-700); font-size: 15px; line-height: 1.7; }

@media (max-width: 968px) {
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .process-item, .process-item:nth-child(4), .process-item:nth-child(5) { grid-column: span 1; }
}
@media (max-width: 640px) {
    .process-grid { grid-template-columns: 1fr; }
}

/* BENEFIT LIST */
.benefit-list {
    list-style: none;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem; margin-top: 4rem;
}
.benefit-item {
    padding: 2rem; border-left: 4px solid var(--yellow);
    background: var(--white); border-radius: 12px;
    transition: all 0.3s; box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.benefit-item:hover { transform: translateX(8px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
.benefit-item h5 { margin-bottom: 1.2rem; }
.benefit-item ul { list-style: none; }
.benefit-item li {
    padding: 0.5rem 0; font-size: 14px; color: var(--grey-700);
    padding-left: 1.5rem; position: relative; line-height: 1.6;
}
.benefit-item li::before {
    content: "\2192"; position: absolute; left: 0;
    color: var(--yellow-dark); font-weight: 700;
}

/* LOCATIONS GRID */
.locations-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem; margin-top: 3rem;
}
.location-item {
    padding: 1.2rem 1.5rem; border: 2px solid var(--grey-300);
    border-radius: 12px; text-align: center; font-size: 14px;
    font-weight: 500; transition: all 0.3s;
    display: flex; align-items: center; justify-content: center;
    gap: 0.6rem; min-height: 60px;
}
.location-item i { color: var(--yellow-dark); font-size: 16px; flex-shrink: 0; }
.location-item:hover {
    border-color: var(--yellow); transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.15);
}
@media (max-width: 968px) { .locations-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .locations-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq-container { max-width: 900px; margin: 4rem auto 0; }
.faq-item { border-bottom: 1px solid var(--yellow-dark); transition: all 0.3s; }
.faq-question {
    padding: 1.2rem 0; cursor: pointer; font-weight: 600; font-size: 17px;
    display: flex; justify-content: space-between; align-items: center; transition: all 0.3s;
}
.faq-question:hover { color: var(--yellow-dark); }
.faq-toggle { font-size: 24px; color: var(--yellow-dark); transition: transform 0.3s; font-weight: 300; }
.faq-item.active .faq-toggle { transform: rotate(45deg); }
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
    font-size: 16px; color: var(--grey-700); line-height: 1.7;
}
.faq-item.active .faq-answer { max-height: 500px; padding-bottom: 2rem; }

/* FORMS */
.form-section {
    padding: clamp(50px, 8vw, 80px) 2rem;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.03), transparent), var(--grey-100);
}
.form-container {
    max-width: 1000px; margin: 0 auto; background: var(--white);
    padding: clamp(2rem, 4vw, 3rem); border-radius: 24px;
    border: 2px solid var(--grey-300); box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    position: relative; overflow: visible;
}
.form-header { margin-bottom: 3rem; text-align: center; }
.form-header h3 { margin-bottom: 1rem; }
.form-header p { font-size: 16px; color: var(--grey-700); line-height: 1.7; }

.form-grid { display: grid; gap: 1.8rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label {
    display: block; font-weight: 600; margin-bottom: 0.6rem;
    font-size: 14px; color: var(--grey-900);
}

input, select, textarea {
    width: 100%; padding: 0.9rem 1.2rem;
    border: 2px solid var(--grey-300); border-radius: 10px;
    font-size: 16px; font-family: inherit; transition: all 0.3s; background: var(--white);
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--yellow-dark);
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.1);
}
textarea { resize: vertical; min-height: 100px; }

/* PROGRESS BAR */
.progress-bar-container {
    position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grey-300);
}
.progress-bar-fill { height: 100%; background: var(--yellow); transition: width 0.4s ease; width: 33%; }

/* MULTI-STEP */
.form-step { display: none; animation: fadeIn 0.4s ease; }
.form-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.step-header { text-align: center; margin-bottom: 30px; }
.step-indicator {
    display: inline-block; background: var(--yellow); color: var(--black);
    font-size: 12px; font-weight: 700; padding: 6px 16px;
    border-radius: 20px; margin-bottom: 15px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.step-title { font-size: clamp(24px, 4vw, 32px); font-weight: 700; color: var(--black); margin-bottom: 8px; }
.step-subtitle { font-size: 16px; color: var(--grey-700); }

/* INVESTMENT OPTIONS */
.investment-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 25px; }
.investment-option {
    position: relative; border: 2px solid var(--grey-300); border-radius: 12px;
    padding: 18px 20px; cursor: pointer; transition: all 0.3s ease; background: var(--white);
}
.investment-option:hover { border-color: var(--yellow); }
.investment-option.selected { border-color: var(--yellow); background: rgba(255, 193, 7, 0.05); }
.investment-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.investment-option .option-content { display: flex; align-items: center; gap: 15px; }

.option-radio {
    width: 22px; height: 22px; border: 2px solid var(--grey-300);
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; flex-shrink: 0; transition: all 0.3s;
}
.investment-option.selected .option-radio { border-color: var(--yellow); background: var(--yellow); }
.option-radio::after {
    content: ''; width: 8px; height: 8px; background: var(--black);
    border-radius: 50%; opacity: 0; transition: opacity 0.2s;
}
.investment-option.selected .option-radio::after { opacity: 1; }

.option-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.option-title { font-weight: 600; font-size: 16px; color: var(--black); }
.option-desc { font-size: 13px; color: var(--grey-600); font-weight: 400; }
.option-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
    color: var(--black); font-size: 10px; font-weight: 700;
    padding: 4px 10px; border-radius: 12px;
    text-transform: uppercase; align-self: flex-start; margin-top: 4px;
}
.investment-option.popular { border-color: var(--yellow); box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2); }

/* FORM NAVIGATION */
.form-navigation { display: flex; gap: 12px; margin-top: 25px; }
.btn-back {
    flex: 0 0 auto; padding: 1rem 1.5rem; background: var(--white);
    color: var(--grey-700); border: 2px solid var(--grey-300);
    border-radius: 10px; font-size: 16px; font-weight: 600;
    cursor: pointer; transition: all 0.3s;
    display: flex; align-items: center; gap: 8px;
}
.btn-back:hover { border-color: var(--grey-500); background: var(--grey-100); }
.btn-next {
    flex: 1; padding: 1rem;
    background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
    color: var(--black); border: none; border-radius: 10px;
    font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.3s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-next:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4); }

.step-hint { text-align: center; margin-top: 1rem; font-size: 13px; color: var(--grey-500); font-style: italic; }

.submit-btn-green {
    width: 100%; padding: 1.2rem;
    background: linear-gradient(135deg, #22C55E, #16A34A);
    color: var(--white); border: none; border-radius: 10px;
    font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.3s;
    margin-top: 2rem; box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.submit-btn-green:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4); }

/* PRIVACY CHECKBOX */
.idx-privacy {
    display: flex; align-items: flex-start; gap: 10px;
    margin-top: 1.5rem; font-size: 12px; color: var(--grey-500);
    line-height: 1.6; text-align: left;
}
.idx-privacy input[type="checkbox"] {
    margin-top: 3px; min-width: 18px; min-height: 18px;
    width: auto; padding: 0; accent-color: var(--yellow); cursor: pointer; flex-shrink: 0;
}
.idx-privacy label { cursor: pointer; }
.idx-privacy a { color: var(--yellow-dark); text-decoration: underline; }

/* COUNTRY DROPDOWN */
.country-search-wrapper { position: relative; }
.country-search-input {
    width: 100%; padding: 14px 16px 14px 42px;
    border: 2px solid var(--grey-200); border-radius: 10px;
    font-size: 15px; font-family: inherit; transition: border-color 0.3s; background: var(--white);
}
.country-search-input:focus { outline: none; border-color: var(--yellow); }
.country-search-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--grey-500); font-size: 16px; pointer-events: none;
}
.country-dropdown {
    display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0;
    max-height: 250px; overflow-y: auto; background: var(--white);
    border: 2px solid var(--grey-200); border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12); z-index: 999;
}
.country-dropdown.open { display: block; }
.country-option {
    padding: 10px 16px; cursor: pointer; font-size: 14px;
    display: flex; align-items: center; gap: 10px; transition: background 0.15s;
}
.country-option:hover, .country-option.highlighted { background: var(--grey-100); }
.country-option .flag { font-size: 18px; }
.country-option .name { flex: 1; }
.country-no-results { padding: 12px 16px; color: var(--grey-500); font-size: 14px; text-align: center; }

@media (max-width: 640px) {
    .form-row { grid-template-columns: 1fr; }
    .form-container { padding: 2rem 1rem; }
    .form-section { padding: clamp(50px, 8vw, 80px) 1rem; }
}