@charset "utf-8";
/* Checkout-specific styles based on common.css patterns */

/* === Checkout Page Layout === */
.fs-l-pageMain {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.general-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    padding: 20px 0;
    border-bottom: 2px solid #00b300;
    position: relative;
}

.general-title::after {
    position: absolute;
    content: '';
    left: 50%;
    bottom: -2px;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #00b300 0%, #00d900 100%);
}

/* === Success Message === */
.checkout-success {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #00b300;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 179, 0, 0.1);
}

.checkout-success p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

.checkout-success a {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #00b300 0%, #00d900 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 179, 0, 0.3);
}

.checkout-success a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 179, 0, 0.4);
    text-decoration: none;
    color: white;
}

/* === Form Container === */
.fs-c-inputInformation__field {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    overflow: hidden;
}

.fs-c-memberInfoField {
    padding: 30px;
    border: none;
    margin: 0;
}

/* === Input Table === */
.fs-c-inputTable {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.fs-c-inputTable tr {
    border-bottom: 1px solid #f0f0f0;
}

.fs-c-inputTable tr:last-child {
    border-bottom: none;
}

.fs-c-inputTable__headerCell {
    width: 200px;
    padding: 20px 15px;
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
    vertical-align: top;
    border-right: 1px solid #f0f0f0;
}

.fs-c-inputTable__dataCell {
    padding: 20px 15px;
    vertical-align: top;
}

.fs-c-inputTable__label {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
}

/* === Required Mark === */
.fs-c-requiredMark {
    color: #dc3545;
    font-weight: bold;
    font-size: 12px;
    margin-left: 5px;
}

/* === Input Fields === */
.fs-c-inputField {
    width: 100%;
}

.fs-c-inputField__field {
    width: 100%;
}

.fs-c-inputField input[type="text"],
.fs-c-inputField input[type="email"],
.fs-c-inputField input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.fs-c-inputField input[type="text"]:focus,
.fs-c-inputField input[type="email"]:focus,
.fs-c-inputField input[type="tel"]:focus {
    outline: none;
    border-color: #00b300;
    box-shadow: 0 0 0 3px rgba(0, 179, 0, 0.1);
}

.fs-c-inputField input[type="text"]:hover,
.fs-c-inputField input[type="email"]:hover,
.fs-c-inputField input[type="tel"]:hover {
    border-color: #00b300;
}

/* === Input Text Group === */
.fs-c-inputTextGroup {
    display: flex;
    gap: 15px;
}

.fs-c-inputTextGroup__item {
    flex: 1;
}

.fs-c-inputTextGroup__item input {
    width: 100%;
}

/* === Dropdown === */
.fs-c-dropdown {
    width: 100%;
}

.fs-c-dropdown__menu {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.fs-c-dropdown__menu:focus {
    outline: none;
    border-color: #00b300;
    box-shadow: 0 0 0 3px rgba(0, 179, 0, 0.1);
}

.fs-c-dropdown__menu:hover {
    border-color: #00b300;
}

/* === Dropdown Group === */
.fs-c-dropdownGroup {
    display: flex;
    gap: 15px;
}

.fs-c-inputDate__year,
.fs-c-inputDate__month,
.fs-c-inputDate__date {
    flex: 1;
}

/* === Radio Buttons === */
.fs-c-radioGroup {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.fs-c-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
    
}

.fs-c-radio:hover {
    border-color: #00b300;
    background: #f8f9fa;
}

.fs-c-radio__radio {
    display: none;
}

.fs-c-radio__radioMark {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}
.fs-c-radio__label {
    display: flex;
}

.fs-c-radio__radio:checked + .fs-c-radio__label .fs-c-radio__radioMark {
    border-color: #00b300;
    background: #00b300;
}

.fs-c-radio__radio:checked + .fs-c-radio__label .fs-c-radio__radioMark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.fs-c-radio__radioLabelText {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* === Checkbox === */
.fs-c-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
}

.fs-c-checkbox:hover {
    border-color: #00b300;
    background: #f8f9fa;
}

.fs-c-checkbox__checkbox {
    display: none;
}

.fs-c-checkbox__checkMark {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.fs-c-checkbox__checkbox:checked + .fs-c-checkbox__label .fs-c-checkbox__checkMark {
    border-color: #00b300;
    background: #00b300;
}

.fs-c-checkbox__checkbox:checked + .fs-c-checkbox__label .fs-c-checkbox__checkMark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    color: white;
    font-weight: bold;
    transform: translate(-50%, -50%);
    font-size: 12px;
}

.fs-c-checkbox__labelText {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.fs-c-checkbox__labelText a {
    color: #00b300;
    text-decoration: none;
}

.fs-c-checkbox__labelText a:hover {
    text-decoration: underline;
}

/* === Payment Section === */
.fs-c-checkout-paymentInfo {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    padding: 30px;
}

.fs-c-checkout-paymentInfo__title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #00b300;
}

.fs-c-checkout-paymentInfo__message {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.fs-c-checkout-paymentMethodList {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fs-c-checkout-paymentMethod {
    margin-bottom: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
}

.fs-c-checkout-paymentMethod:hover {
    border-color: #00b300;
    background: #f8f9fa;
}

.fs-c-checkout-paymentMethod__title {
    padding: 15px 20px;
}

.fs-c-checkout-paymentMethod__title .fs-c-radio {
    border: none;
    padding: 0;
    background: none;
}

.fs-c-checkout-paymentMethod__title .fs-c-radio:hover {
    background: none;
}

/* === Credit Card Form === */
#credit-card {
    background: #f8f9fa;
    border: 2px solid #00b300;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    list-style: none;
}

.fs-c-checkout-paymentMethod__form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fs-c-checkout-paymentMethod__label {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
}

.fs-c-checkout-paymentMethod__input {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.fs-c-checkout-paymentMethod__input:focus {
    outline: none;
    border-color: #00b300;
    box-shadow: 0 0 0 3px rgba(0, 179, 0, 0.1);
}

.fs-c-checkout-paymentMethod__input:disabled {
    background: #f0f0f0;
    color: #999;
    cursor: not-allowed;
}

/* === Submit Button === */
.fs-c-inputInformation__button {
    text-align: center;
    margin-top: 30px;
}

.fs-c-button--registerAndContinue {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #00b300 0%, #00d900 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 179, 0, 0.3);
    min-width: 200px;
}

.fs-c-button--registerAndContinue:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 179, 0, 0.4);
    background: linear-gradient(135deg, #00d900 0%, #00b300 100%);
}

.fs-c-button--registerAndContinue:active {
    transform: translateY(0);
}

/* === Cart Summary Section === */
.fs-c-checkout-cartSummary {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    padding: 30px;
    border: 2px solid #00b300;
}

.fs-c-checkout-cartSummary__title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #00b300;
}

.fs-c-checkout-cartSummary__content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fs-c-checkout-cartSummary__item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.fs-c-checkout-cartSummary__item__image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.fs-c-checkout-cartSummary__item__info {
    flex: 1;
}

.fs-c-checkout-cartSummary__item__name {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
}

.fs-c-checkout-cartSummary__item__price {
    color: #666;
    font-size: 14px;
}

.fs-c-checkout-cartSummary__item__quantity {
    font-weight: bold;
    color: #333;
    margin-right: 20px;
    font-size: 14px;
}

.fs-c-checkout-cartSummary__item__total {
    font-weight: bold;
    color: #00b300;
    font-size: 16px;
}

.fs-c-checkout-cartSummary__total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #00b300;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fs-c-checkout-cartSummary__total__label {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.fs-c-checkout-cartSummary__total__value {
    font-size: 24px;
    font-weight: bold;
    color: #00b300;
}

@media (max-width: 768px) {
    .fs-l-pageMain {
        padding: 15px;
    }

    .general-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .fs-c-memberInfoField {
        padding: 20px;
    }

    .fs-c-inputTable__headerCell {
        width: auto;
        display: block;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding: 15px;
        background: #f8f9fa;
    }

    .fs-c-inputTable__dataCell {
        display: block;
        padding: 15px;
    }

    .fs-c-inputTextGroup {
        flex-direction: column;
        gap: 10px;
    }

    .fs-c-dropdownGroup {
        flex-direction: column;
        gap: 10px;
    }

    .fs-c-radioGroup {
        flex-direction: column;
        gap: 10px;
    }

    .fs-c-checkout-paymentInfo,
    .fs-c-memberInfoField {
        padding: 20px;
    }

    .fs-c-button--registerAndContinue {
        width: 100%;
        padding: 15px;
    }

    .fs-c-checkout-cartSummary__item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .fs-c-checkout-cartSummary__item__image {
        width: 50px;
        height: 50px;
    }
    
    .fs-c-checkout-cartSummary__total {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .fs-l-pageMain {
        padding: 10px;
    }

    .general-title {
        font-size: 1.5rem;
    }

    .fs-c-memberInfoField,
    .fs-c-checkout-paymentInfo {
        padding: 15px;
    }

    .fs-c-inputTable__headerCell,
    .fs-c-inputTable__dataCell {
        padding: 10px;
    }

    .fs-c-inputField input[type="text"],
    .fs-c-inputField input[type="email"],
    .fs-c-inputField input[type="tel"],
    .fs-c-dropdown__menu {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* === Form Validation === */
.fs-c-inputField input.is-required:invalid {
    border-color: #dc3545;
}

.fs-c-inputField input.is-required:valid {
    border-color: #28a745;
}

/* === Loading States === */
.fs-c-button--registerAndContinue:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.fs-c-button--registerAndContinue.loading {
    position: relative;
    color: transparent;
}

.fs-c-button--registerAndContinue.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* === Focus States for Accessibility === */
.fs-c-radio__radio:focus + .fs-c-radio__label,
.fs-c-checkbox__checkbox:focus + .fs-c-checkbox__label {
    outline: 2px solid #00b300;
    outline-offset: 2px;
}

/* === High Contrast Mode === */
@media (prefers-contrast: high) {
    .fs-c-inputField input[type="text"],
    .fs-c-inputField input[type="email"],
    .fs-c-inputField input[type="tel"],
    .fs-c-dropdown__menu {
        border-color: #000;
    }

    .fs-c-radio,
    .fs-c-checkbox {
        border-color: #000;
    }
}

/* === Print Styles === */
@media print {
    .fs-c-button--registerAndContinue {
        display: none;
    }
    
    .fs-c-inputField input[type="text"],
    .fs-c-inputField input[type="email"],
    .fs-c-inputField input[type="tel"],
    .fs-c-dropdown__menu {
        border: 1px solid #000;
        background: white;
    }
}
