:root {
    --fp-accent: #C0D778;
    --fp-accent-dark: #C0D778;
    --fp-accent-light: #F4FFD0;
    --fp-bg: #ffffff;
    --fp-text: #000000;
    --fp-text-light: #666666;
    --fp-gray-bg: #f8f9fa;
    --fp-border: #e9ecef;
    --fp-font-body: 'Noto Sans', Sans-serif;
    --fp-font-heading: 'Noto Sans', Sans-serif;
}

/* Yleiset asetukset */
#fp-wrapper {
    font-family: var(--fp-font-body);
    color: var(--fp-text);
    position: relative;
}

#fp-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px 20px 100px 20px;
}

#fp-wrapper h1, h2, h3 {
    font-family: var(--fp-font-heading);
    color: var(--fp-text);
}

#fp-wrapper h2 {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    border: none;
}

.fp-price-display {
    color: var(--fp-accent);
    padding: 8px 20px;
    border-radius: 8px;
    font-family: var(--fp-font-heading);
    font-weight: 600;
    font-size: 16px;
    border: 1px solid var(--fp-accent);
    white-space: nowrap;
    box-shadow: none;
}

#fp-total-price {
    margin-left: 10px;
}

/* --- Progress Bar (Vaihepolku) --- */
.fp-progress-steps-container {
    background: transparent;
    padding: 25px 0;
    margin-bottom: 40px;
    overflow-x: visible;
}

.fp-progress-steps {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    width: 100%;
}

.fp-step-indicator {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    mid-width: 40px;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--fp-border);
    color: var(--fp-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--fp-text-light);
    transition: all 0.3s ease;
    white-space: nowrap;
    width: max-content;
}

.step-connector {
    flex-grow: 1;
    height: 2px;
    background: var(--fp-border);
    margin: 0 5px;
    min-width: 10px;
    transition: all 0.3s ease;
}

.entry-content ul {
    padding-left: 0 !important;
}

/* Active Step Style */
.fp-step-indicator.active .step-circle {
    background: var(--fp-accent);
    border-color: var(--fp-accent);
    color: white;
}
.fp-step-indicator.active .step-label {
    color: var(--fp-text);
    font-weight: 700;
}

/* Completed Step Style */
.fp-step-indicator.completed .step-circle {
    background: var(--fp-accent);
    border-color: var(--fp-accent);
    color: white;
    font-size: 0;
}
.fp-step-indicator.completed .step-circle::after {
    content: '✓';
    font-size: 16px;
}
.fp-step-indicator.completed + .step-connector {
    background: var(--fp-accent);
}


/* --- Steps Content --- */
.fp-step-content {
    display: none;
    animation: fadeIn 0.4s ease;
}
.fp-step-content.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Grids & Cards --- */
.fp-options-grid {
    display: grid;
    gap: 30px;
    justify-content: center;
}
.fp-options-grid.simple { grid-template-columns: repeat(auto-fit, minmax(280px, 400px)); }
.fp-options-grid.products { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.fp-card {
    background: white;
    border: 2px solid var(--fp-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
		flex-direction: column;
    overflow: hidden;
}
.fp-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: #d0d7dd;
}
.fp-card.tall {
    min-height: 275px;
		padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fp-card.tall h3 {
    font-size: 24px;
}

.fp-card.tall p {
    font-size: 15px;
		margin: 0;
}

.fp-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

/* Valittu kortti */
.fp-card input[type="radio"]:checked + .fp-content,
.fp-card input[type="radio"]:checked + .fp-img-placeholder + .fp-content {
}
.fp-card:has(input[type="radio"]:checked) {
     border-color: var(--fp-accent);
     background-color: white;
     box-shadow: 0 4px 15px #c9d79b52;
}

.fp-card-icon {
    width: 120px;
    height: 120px;
    margin-bottom: auto;
    object-fit: contain;
}

.fp-img-placeholder {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    border-bottom: 1px solid var(--fp-border);
}
.fp-img-placeholder img {
    width: 100%;
    height: 200px !important;
    object-fit: cover;
    object-position: bottom center;
}

.fp-content {
		padding: 20px 15px;
		text-align: center;
		flex-grow: 1;
}

.fp-content strong {
    font-size: 18px !important;
    font-weight: 600;
}

.fp-content.centered { 
		text-align: center;
		padding: 0;
		width: 100%;
		height: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
}

.fp-content h3, .fp-content strong {
    font-family: var(--fp-font-heading);
    font-size: 1.2em;
    margin-bottom: 10px;
    display: block;
}
.fp-content p {
    color: var(--fp-text-light);
    font-size: 0.95em;
    line-height: 1.5;
}
.fp-price {
    color: var(--fp-accent);
    font-weight: 700;
    font-size: 1.2em;
    margin-top: 10px;
    display: block;
    font-family: var(--fp-font-heading);
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
}


/* --- Inputs & Forms --- */
.fp-form-group { margin-bottom: 25px; }
.fp-input {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--fp-border);
    border-radius: 8px;
    font-size: 16px;
    font-family: var(--fp-font-body);
    transition: border-color 0.3s;
}
.fp-input:focus {
    border-color: var(--fp-accent);
    outline: none;
}
.fp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}
@media (max-width: 600px) { .fp-form-row { grid-template-columns: 1fr; } }

.fp-radio-group label {
    margin-right: 20px;
    font-weight: 500;
    cursor: pointer;
}
.fp-radio-group input { margin-right: 8px; }


/* Kuljetus-vaiheen kortti */
.fp-transport-card {
    background: white;
    border: 2px solid var(--fp-border);
    border-radius: 12px;
    padding: 35px;
    max-width: 700px;
    margin: 0 auto;
}
.fp-transport-card label {
    color: var(--fp-text);
    margin-bottom: 10px;
    display: block;
    font-size: 16px;
    font-family: var(--fp-font-heading);
}
.fp-transport-card .fp-input {
    background-color: white;
    height: 50px;
		border-radius: 8px;
    cursor: pointer;
}
.fp-transport-separator {
    height: 1px;
    background-color: var(--fp-border);
    margin: 30px 0 25px 0;
    width: 100%;
}
#transport-price-display {
    font-size: 20px;
    font-weight: 700;
    color: var(--fp-accent);
    font-family: var(--fp-font-heading);
    margin: 0;
}

/* --- Toggle Switch --- */
.fp-checkbox-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 30px;
}
.fp-checkbox-toggle input { opacity: 0; width: 0; height: 0; }
.fp-slider {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 30px;
    background-color: #ccc;
    border-radius: 34px;
    margin-right: 15px;
    transition: .4s;
}
.fp-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
input:checked + .fp-slider { background-color: var(--fp-accent); }
input:checked + .fp-slider:before { transform: translateX(26px); }

/* --- Vaihe 6 & 7: Koristekortit --- */
.fp-step-description {
    text-align: center;
    color: var(--fp-text-light);
    margin-bottom: 30px;
    margin-top: -15px;
}
.fp-decoration-card {
    background: white;
    border: 2px solid var(--fp-border);
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.fp-decoration-header {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}
.fp-dh-left {
    display: flex;
    align-items: center;
    gap: 15px;
}
.fp-decoration-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}
.fp-deco-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.fp-deco-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
}
.fp-decoration-header .fp-checkbox-toggle {
    margin-bottom: 0;
}
.hidden-options {
    display: none;
    background: white;
    padding: 0 30px 30px 30px;
    margin-top: 0;
    margin-bottom: 0;
    border-top: 1px solid var(--fp-border);
}
.fp-decoration-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    padding-top: 30px;
}
.fp-deco-controls .fp-input {
	background-color: white;
    height: 50px;
		border-radius: 8px;
    cursor: pointer;
}
.fp-input-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    font-family: var(--fp-font-heading);
    font-size: 16px;
}
.fp-color-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}
.fp-chip {
    cursor: pointer;
}
.fp-chip input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.fp-chip span {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid var(--fp-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s;
    background: white;
}
.fp-chip:hover span {
    border-color: #ccc;
}
.fp-chip input:checked + span {
    border-color: var(--fp-accent);
    background-color: #e6f2f8;
    color: var(--fp-accent-dark);
    font-weight: 600;
}
.fp-deco-image img {
    width: 100%;
    height: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
}
@media (max-width: 650px) {
    .fp-decoration-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .fp-deco-image {
        order: -1;
    }
}

/* --- Vaihe 8: Yhteystiedot --- */
.fp-contact-card {
    background: white;
    border: 2px solid var(--fp-border);
    border-radius: 12px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.fp-floating-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--fp-text-light);
    margin-bottom: 8px;
    margin-left: 2px;
}
.fp-section-label {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--fp-text);
    margin-bottom: 15px;
    font-family: var(--fp-font-heading);
}
.fp-contact-card .fp-input {
		border-radius: 8px !important;
}
.fp-contact-card .fp-input:focus {
    background: #fff;
}
.fp-radio-group {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}
.fp-radio-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
}
.fp-radio-item input {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}
@media (max-width: 600px) {
    .fp-contact-card {
        padding: 20px;
    }
    .fp-radio-group {
        gap: 15px;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --- Sticky Navigation Footer --- */
.fp-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    border-top: 1px solid var(--fp-border);
    padding: 20px 0;
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}

.fp-footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
	align-items: center;
    padding: 0 20px;
}

.fp-submit-message {
    display: none;
    min-width: 280px;
    max-width: 420px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    font-family: var(--fp-font-body);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.fp-submit-message.is-visible {
    display: block;
}
.fp-submit-message.is-error {
    background: #fff3f3;
    color: #b42318;
    border: 1px solid #f5c2c7;
}

.fp-submit-message.is-success {
    background: #edfdf3;
    color: #067647;
    border: 1px solid #a6f4c5;
}

.fp-submit-message.is-info {
    background: #f0f9ff;
    color: #075985;
    border: 1px solid #bae6fd;
}

.fp-btn {
    align-items: center !important;
    padding: 15px 35px;
    border-radius: 50px !important;
    font-size: 16px;
	display: inline-flex;
    gap: 10px;
    cursor: pointer;
    font-weight: 700;
    font-family: var(--fp-font-heading);
    transition: all 0.3s;
    border: none !important;
}
.fp-btn svg {
    width: 20px;
    height: 20px;
    margin-bottom: -3px;
    fill: currentColor;
    transition: transform 0.2s;
}

.fp-btn.primary:hover svg {
    transform: translateX(4px);
}
.fp-btn.primary { background: var(--fp-accent); color: white; }
.fp-btn.primary:hover, .fp-btn.primary:focus
{ background: var(--fp-accent-dark); transform: translateY(-2px); box-shadow: 0 4px 10px #c9d79b; }
.fp-btn.secondary { background: var(--fp-gray-bg); color: var(--fp-text); border: 2px solid var(--fp-border); }
.fp-btn.secondary:hover, .fp-btn.secondary:focus { background: var(--fp-border); color: var(--fp-text); }
.fp-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.fp-btn.large { font-size: 18px; padding: 18px 40px; width: 100%; max-width: 400px; }

.fp-final-action { text-align: center; margin-top: 40px; }
.fp-final-action p { margin-bottom: 20px; color: var(--fp-text-light); }

/* --- Vaihe 9: Yhteenveto --- */

.fp-summary-card {
    background: white;
    border: 2px solid var(--fp-border);
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden; /* Pyöristää kulmat myös headerille */
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

/* Sininen otsikkoalue */
.fp-summary-header {
    background-color: var(--fp-accent);
    color: white;
    padding: 30px;
}

.fp-summary-header h3 {
    color: white;
    margin: 0 0 5px 0;
    font-size: 24px;
}

.fp-summary-header p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 14px;
}

/* Taulukon asettelu */
#fp-summary-table-container {
    padding: 0;
}

.fp-summary-table {
    width: 100%;
    border-collapse: collapse;
    border: none;
    margin: 0;
}

.fp-summary-table th, 
.fp-summary-table td {
		border-left: none !important;
		border-right: none !important;
		border-top: none !important;
		text-align: left;
}

.fp-summary-table th {
    background: #f9f9f9;
    color: var(--fp-text-light);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 20px 30px;
    border-bottom: 1px solid var(--fp-border);
}

.fp-summary-table td {
    padding: 20px 30px;
    border-bottom: 1px solid var(--fp-border);
    color: var(--fp-text);
    font-size: 16px;
}

.fp-summary-table th.fp-col-price,
.fp-summary-table td.fp-col-price {
		text-align: right;
}

/* Viimeinen rivi (Yhteensä) */
.fp-summary-table tfoot tr {
    background-color: #fdfdfd;
}

.fp-summary-table tfoot td {
    border-bottom: none;
    padding-top: 30px;
    padding-bottom: 30px;
}

.fp-summary-total-label {
    font-weight: 700;
    font-size: 20px !important;
    font-family: var(--fp-font-heading);
    color: var(--fp-text);
}

.fp-summary-total-value {
    font-weight: 700;
    font-size: 20px !important;
    color: var(--fp-accent) !important;
    font-family: var(--fp-font-heading);
    text-align: right !important;
}

/* Sarakkeiden leveydet */
.fp-col-product { width: 40%; }
.fp-col-selection { width: 40%; }
.fp-col-price { width: 20%; text-align: right; font-weight: 600; }

/* Responsiivisuus taulukolle */
@media (max-width: 600px) {
    .fp-summary-table th, .fp-summary-table td {
        padding: 15px;
        font-size: 14px;
    }
    .fp-summary-header { padding: 20px; }
}


/* Responsive */
@media (max-width: 768px) {
    .fp-price-display { width: 100%; text-align: center; }
		.fp-price-label { display: none; }
    .step-label { display: none; } 
    .step-circle { margin-right: 0; }
    .fp-footer-content { padding: 0 15px; }
    .fp-btn { padding: 12px 20px; font-size: 14px; }
}