:root {
    --primary-color: #D60F16;
    --secondary-color: #232E3D;
    --tertiary-color: #1a2332;
}

body {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--tertiary-color) 100%);
    box-sizing: border-box;
    margin: 0;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 15px 25px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    display: none;
    /* animation: slideIn 0.3s ease; */
}

* {
    box-sizing: border-box;
}

.container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
    padding: 40px;
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo-placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--primary-color);
    border: 3px solid var(--primary-color);
}

h1 {
    text-align: center;
    color: var(--secondary-color);
    margin: 0 0 10px 0;
    font-size: 28px;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 16.66%;
    right: 16.66%;
    height: 5px;
    background: #e0e0e0;
    z-index: 0;
}

.progress-bar-fill {
    position: absolute;
    top: 20px;
    left: 16.66%;
    height: 5px;
    background: var(--primary-color);
    z-index: 1;
    transition: width 0.3s ease;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 3px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #999;
    transition: all 0.3s ease;
}

.step-indicator.active .step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.step-indicator.completed .step-circle {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.step-label {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    text-align: center;
}

.step-indicator.active .step-label {
    color: var(--primary-color);
    font-weight: bold;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    color: var(--secondary-color);
    font-size: 22px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.subscription-options {
    display: grid;
    gap: 15px;
    margin-bottom: 25px;
}

.subscription-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.subscription-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(214, 15, 22, 0.1);
}

.subscription-card.selected {
    border-color: var(--primary-color);
    background: #fff5f5;
}

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

.subscription-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.subscription-name {
    font-size: 18px;
    font-weight: bold;
    color: var(--secondary-color);
}

.subscription-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

.subscription-description {
    color: #666;
    font-size: 14px;
}

.member-selector {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    display: none;
}

.member-selector label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--secondary-color);
}

.member-selector select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    background: white;
}

.member-form {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.member-form-header {
    font-size: 18px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--secondary-color);
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.individual-options-section {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    display: none;
}

.options-title,
.common-address-title {
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 12px;
    font-size: 15px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.checkbox-option:hover {
    background: #f8f9fa;
}

.checkbox-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-option label {
    cursor: pointer;
    flex: 1;
    font-size: 14px;
}

.common-address {
    background: #e8f4f8;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    border-left: 4px solid var(--secondary-color);
}

.global-options-section {
    background: #fff9e6;
    border-radius: 8px;
    padding: 20px;
    margin-top: 25px;
    border-left: 4px solid var(--primary-color);
}

.summary-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.summary-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.summary-options-item {
    display: block;
    padding: 0px 15px;
}

.summary-options-item div {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 500;
    color: var(--secondary-color);
}

.summary-value {
    color: #666;
}

.member-summary {
    background: white;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.total-section {
    background: var(--secondary-color);
    color: white;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-size: 20px;
    font-weight: bold;
}

.total-amount {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
}

.conditions-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    border: 2px solid #e0e0e0;
}

.conditions-section .checkbox-option {
    margin-bottom: 0;
}

.conditions-section label {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 15px;
}

.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.btn {
    padding: 14px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #b00d13;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(214, 15, 22, 0.3);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: var(--tertiary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(35, 46, 61, 0.3);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.step-indicator.active .step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.step-indicator.completed .step-circle {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.step-indicator.active .step-label {
    color: var(--primary-color);
}

.step-title {
    color: var(--secondary-color);
    border-bottom-color: var(--primary-color);
}

.subscription-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(214, 15, 22, 0.1);
}

.subscription-card.selected {
    border-color: var(--primary-color);
}

.subscription-name {
    color: var(--secondary-color);
}

.subscription-price {
    color: var(--primary-color);
}

.member-selector label {
    color: var(--secondary-color);
}

.member-form {
    border-left-color: var(--primary-color);
}

.member-form-header {
    color: var(--secondary-color);
}

.form-group label {
    color: var(--secondary-color);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-color);
}

.checkbox-option input[type="checkbox"] {
    accent-color: var(--primary-color);
}

.common-address {
    border-left-color: var(--secondary-color);
}

.global-options-section {
    border-left-color: var(--primary-color);
}

.summary-title {
    color: var(--secondary-color);

    border-bottom-color: var(--primary-color);
}

.summary-label {
    color: var(--secondary-color);
}

.total-section {
    background: var(--secondary-color);
}

.total-amount {
    color: var(--primary-color);
}

.btn-primary {
    background: var(--primary-color);
}

.btn-primary:hover {
    background: #b00d13;
    box-shadow: 0 4px 12px rgba(214, 15, 22, 0.3);
}

.btn-secondary {
    background: var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--tertiary-color);
    box-shadow: 0 4px 12px rgba(35, 46, 61, 0.3);
}

.progress-bar-fill {
    background: var(--primary-color);
}

.progress-bar::before {
    height: 5px;
}

.progress-bar-fill {
    height: 5px;
}

.logo-placeholder {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    .step-label {
        font-size: 10px;
    }
}

.message-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.message-container .icon {
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-container h1 {
    margin: 10px auto;
}

p {
    text-align: justify;
}

.message-container p {
    color: #666;
    font-size: 18px;
    margin: 10px auto;
}

.message-container button
{
    margin: 20px auto;
}

@keyframes checkmark {
    0% {
    stroke-dashoffset: 100;
    }
    100% {
    stroke-dashoffset: 0;
    }
}

@keyframes cross {
    0% {
    stroke-dashoffset: 100;
    }
    100% {
    stroke-dashoffset: 0;
    }
}

@keyframes circle {
    0% {
    stroke-dashoffset: 300;
    }
    100% {
    stroke-dashoffset: 0;
    }
}

.svg-success-color {
    stroke: #4CAF50;
}

.svg-failure-color {
    stroke: #D60F16;
}

.circle-path {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: circle 0.6s ease-in-out forwards;
}

.checkmark-path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: checkmark 0.6s ease-in-out 0.3s forwards;
}

.cross-path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: cross 0.6s ease-in-out 0.3s forwards;
}

.invalid-input {
    border-color: red !important;
    border-style: dashed !important;
}