@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=Space+Grotesk:wght@300..700&display=swap');

/* SCOPED CONTAINER - Use this instead of Body */
.contact-wizard-scope {
    font-family: "Space Grotesk", sans-serif;
    background: white;
    color: #222;
    /* Removed display: grid and min-height to stop breaking the page */
    width: 100%;
}

.contact-wizard-scope * {
    box-sizing: border-box;
}

.contact-wizard-scope button,
.contact-wizard-scope a,
.contact-wizard-scope input,
.contact-wizard-scope select,
.contact-wizard-scope textarea {
    font-family: inherit;
}

.contact-wizard-scope .wizard {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: opacity 0.4s ease;
}

.contact-wizard-scope .hidden {
    display: none;
}

.contact-wizard-scope h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: #222; /* Ensure it overrides main theme if needed */
}

.contact-wizard-scope p {
    color: #555;
    margin-bottom: 2rem;
}

.contact-wizard-scope .next-btn {
    margin-top: 60px;
    margin-bottom: 35px;
    padding: 10px 24px;
    background: #da0034;
    color: white;
    border: none;
    text-decoration: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.contact-wizard-scope .next-btn:hover {
    opacity: 0.9;
}

.contact-wizard-scope .next-btn svg {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.contact-wizard-scope .next-btn:hover svg {
    transform: translateX(5px);
}

.contact-wizard-scope .next-btn:disabled {
    background: #ff9aa2;
    cursor: not-allowed;
}

.contact-wizard-scope .btn-secondary {
    display: inline-block;
    margin-top: 2rem;
    margin-right: 1rem;
    padding: calc(0.75rem - 2px * 2) 2rem;
    border: 2px solid #da0034;
    color: #da0034;
    background: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.contact-wizard-scope .btn-secondary:hover {
    opacity: 0.9;
}

/* flags */
.contact-wizard-scope .flags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1 1 200px;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-wizard-scope .flag-card {
    width: 120px;
    background: white;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: 0.2s;
    border: none;
    outline: 1px solid #ccc;
}

.contact-wizard-scope .flag-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.contact-wizard-scope .flag-card:focus-visible {
    outline: 2px solid #222;
}

.contact-wizard-scope .flag-card.selected {
    outline: 2px solid #da0034;
    background: #ffeeee;
}

.contact-wizard-scope .flag {
    font-size: 3rem;
}

.contact-wizard-scope .country-name {
    margin-top: 0.5rem;
    font-weight: 600;
}

/* forms */
.contact-wizard-scope form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%; /* Changed from fixed 500px to fit column */
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
}

.contact-wizard-scope label {
    align-self: flex-start;
    font-weight: 500;
    margin-top: 0.25rem;
}

.contact-wizard-scope input,
.contact-wizard-scope textarea {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.contact-wizard-scope :is(input, textarea):focus-visible {
    outline: 1px solid #3f3f3f;
}

.contact-wizard-scope .select-wrapper {
    position: relative;
    width: 100%;
    padding-right: 1rem;
    border: 1px solid #ccc;
}

.contact-wizard-scope .select-wrapper:has(select:focus-visible) {
    outline: 1px solid #3f3f3f;
}

.contact-wizard-scope select {
    width: 100%;
    height: 100%;
    padding-block: 0.6rem;
    padding-left: 1rem;
    background: transparent;
    cursor: pointer;
    border: none;
    outline: none;
}

.contact-wizard-scope textarea {
    min-height: 100px;
    resize: vertical;
}

.contact-wizard-scope .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    width: 100%;
}

.contact-wizard-scope .summary {
    display: grid;
    justify-items: center;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 600px;
    margin: auto;
    text-align: center;
}

.contact-wizard-scope .summary h2 {
    margin-top: 0;
}

.contact-wizard-scope .summary p strong {
    display: inline-block;
    width: 150px;
}

.contact-wizard-scope #summaryContent {
    width: fit-content;
    text-align: left;
}