/* ===== GIFT CERTIFICATE ===== */

/* --- Constructor layout --- */
.gc {
    padding: 40px 0 80px;
}

.gc__inner {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.gc-header {
    font-size:25px;
}

.gc__col--design {
    width: 40%;
    flex-shrink: 0;
}

.gc__col--settings {
    flex: 1;
}

.gc__step-title {
    margin-bottom: 8px;
}

.gc__step-num {
    color: #ED2438;
    font-weight: bold;
}

.gc__step-desc {
    color: #201E1E;
    margin-bottom: 20px;
    font-size: 16px;
    font-family: 'Kelson Sans Light';
    padding-top: 7px;
}

.gc-mb-0 {
    margin-bottom: 0;
}

/* Design preview switcher */
.gc-design__switcher {
    position: relative;
    aspect-ratio: 16 / 9;
    margin-bottom: 20px;
}

.gc-design__preview {
    position: absolute;
    inset: 0;
    background-color: #201E1E;
    background-image: url('/img/mockup.jpg');
    border-radius: 24px;
    background-size: cover;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.gc-design__preview.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.gc-design__preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Upload form */
.gc-upload {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px dashed #ED2438;
    border-radius: 24px;
    background-color: #F8F9FD;
    padding: 30px 40px;
    gap: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gc-upload.is-active {
    opacity: 1;
    pointer-events: auto;
}

.gc-upload__input {
    display: none;
}

.gc-upload__title {
    font-size: 22px;
    font-weight: 700;
    color: #201E1E;
    margin: 0;
}

.gc-upload__hint {
    color: #6C6F79;
    margin: 0;
    line-height: 1.5;
}

.gc-upload__btn {
    display: block;
    width: 100%;
    padding: 17px 20px;
    text-align: center;
    cursor: pointer;
}

.gc-upload__format {
    color: #6C6F79;
    margin: 0;
}

.gc-upload__terms {
    color: #6C6F79;
    margin: 0;
    line-height: 1.5;
}

.gc-upload__terms a {
    color: #ED2438;
    text-decoration: underline;
}

.gc-upload--dragover {
    background-color: #f0e8e9;
}

.gc-design__custom-btn {
    width: 100%;
    padding: 17px 20px;
    background: #F8F9FD;
    color: #201E1E;
    margin-bottom: 20px;
    font-size: 16px;
}

.gc-design__custom-btn:hover {
    background-color: #E7EAF4;
}

.gc-design__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.gc-design__item {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background-color: #201E1E;
    border-radius: 12px;
}

.gc-design__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gc-design__item--active::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-radius: 40px;
    background-color: #ED2438;
    transform: translate(50%, -50%);
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.5 4.5L6.5 11.5L3 8' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 27% 74%;
    background-size: 16px 16px;
    z-index: 1;
}

/* Step blocks */
.gc-step {
    background-color: #ffffff;
    padding: 0 30px 30px 30px;
}

/* Amount */
.gc-amount {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.gc-amount__field {
    flex: 1;
}

.gc-amount__qty {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    background: #ffffff;
    white-space: nowrap;
    margin-top: 19px;
}

.gc-amount__count {
    height: 64px;
    width: 64px;
    text-align: center;
    line-height: 64px;
    font-size: 20px;
}

.gc-amount__btn {
    font-size: 40px;
    color: #201E1E;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 10px;
    font-family: 'Kelson Sans Light';
}

.gc-amount__btn:hover {
    color: #ED2438;
}

.gc-notice {
    color: #6C6F79;
    margin: 0;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background-color:#F8F9FD;
    padding: 15px;
    font-family: 'Kelson Sans Light';
    font-size: 14px;
}

.gc-notice::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    background-image: url('/images/seal.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.gc-divider {
    border-top:1px solid #E0E3ED;
    width:100%;
    height:1px;
    margin-bottom: 30px;
}

/* Error state */
.text-field__input--error {
    border-color: #ED2438;
}

/* Greeting textarea */
.gc-greeting__textarea {
    min-height: 120px;
}

/* Delivery toggle */
.gc-delivery {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.gc-delivery__option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    cursor: pointer;
}

.gc-delivery__option-title {
    font-weight: 400;
    color: #201E1E;
}

.gc-delivery__option-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gc-delivery__option-desc {
    color: #201E1E;
    font-size: 16px;
    font-family: 'Kelson Sans Light';
}

.gc-delivery__radio {
    appearance: none;
    width: 24px;
    height: 24px;
    border: 1px solid #E0E3ED;
    border-radius: 50%;
    background-color: #ffffff;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
}

.gc-delivery__radio:checked {
    border: 2px solid #ED2438;
    background-color: #ED2438;
    outline: 2px solid #ED2438;
    outline-offset: 2px;
}

.gc-notify .checkmark {
    top: -2px;
}

.gc-delivery__schedule {
    display: flex;
    gap: 12px;
}

#gc_date, #gc_time {
    padding-left: 0.6rem;
}

.gc-delivery__field {
    flex: 1;
}

/* Notify checkbox */
.gc-notify {
    margin-top: 16px;
    display: block;
}

.gc-notify-email {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
    margin-top: 0;
}

.gc-notify-email.is-visible {
    max-height: 120px;
    opacity: 1;
    margin-top: 12px;
}

/* Action buttons */
.gc-actions {
    display: flex;
    gap: 12px;
}

.gc-actions__btn {
    flex: 1;
    padding: 17px 20px;
}

.gc-actions__btn--preview {
    background: #F8F9FD;
    color: #201E1E;
}

.gc-actions__btn--preview:hover {
    background-color: #E7EAF4;
}

/* --- FAQ --- */
.gc-faq {
    background-color: #070707;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    min-height: 1058px;
}

.gc-faq__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1058px;
    background-image: url('/img/tennis-player.jpg');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: cover;
    pointer-events: none;
    z-index: 0;
}

.gc-faq__inner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.gc-faq__left {
    width: 50%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gc-faq__title {
    color: #ffffff;
    font-size: 60px;
    font-weight: 400;
    margin: 0;
}

.gc-faq__desc {
    color: rgba(255, 255, 255, 1);
    margin: 0;
    line-height: 1.6;
    font-size: 18px;
}

.gc-faq__chat {
    border-bottom: 3px solid #ED2438;
    color: #fff;
    transition: border-color 0.3s ease;
}

.gc-faq__chat:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.gc-faq__right {
    flex: 1;
}

.gc-faq__accordion {
    display: flex;
    flex-direction: column;
}

.gc-faq__item {
    background: #ffffff;
    border-bottom: 1px solid #E7EAF4;
}

.gc-faq__item:first-child {
    border-top: none;
}

.gc-faq__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    text-align: left;
    background: transparent;
    color: #201E1E;
}

.gc-faq__question:hover {
    color: #ED2438;
}

.gc-faq__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    position: relative;
}

.gc-faq__icon::before,
.gc-faq__icon::after {
    content: '';
    position: absolute;
    background: #201E1E;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.gc-faq__icon::before {
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.gc-faq__icon::after {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.gc-faq__item.is-open .gc-faq__icon::before {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.gc-faq__item.is-open .gc-faq__question {
    color: #ED2438;
}

.gc-faq__item.is-open .gc-faq__icon::before,
.gc-faq__item.is-open .gc-faq__icon::after {
    background: #ED2438;
}

.gc-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    color: #6C6F79;
    line-height: 1.6;
}

.gc-faq__answer p {
    margin: 0;
    padding: 0 24px 20px;
}

.gc-faq__item.is-open .gc-faq__answer {
    max-height: 600px;
}

/* --- Preview modal --- */
.gc-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gc-modal.is-open {
    display: flex;
}

.gc-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(32, 30, 30, 0.7);
    cursor: pointer;
}

.gc-modal__window {
    position: relative;
    z-index: 1;
    background: #ffffff;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.gc-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.gc-modal__hero {
    background: linear-gradient(135deg, #9A1C29 0%, #201E1E 100%);
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    overflow: hidden;
    position: relative;
}

.gc-modal__hero-content {
    width: 70%;
}

.gc-modal__hero-title {
    color: #ffffff;
    font-size: 50px;
    font-weight: 400;
    margin-bottom: 16px;
}

.gc-modal__hero-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

.gc-modal__hero-image {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 315px;
    pointer-events: none;
}

.gc-modal__hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.gc-modal__card-section {
    padding: 30px 40px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    background: #ffffff;
}

.gc-modal__card-image {
    flex-shrink: 0;
    width: 430px;
    height: 270px;
    overflow: hidden;
    border-radius: 12px;
}

.gc-modal__card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 12px;
}

.gc-modal__card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #E7EAF4;
    border-radius: 24px;
    padding: 35px 30px;
    height: 270px;
}

.gc-modal__card-label {
    font-size: 20px;
    font-weight: 700;
    color: #201E1E;
    margin: 0;
}

.gc-modal__card-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gc-modal__card-key {
    font-size: 16px;
    color: #201E1E;
}

.gc-modal__card-value {
    font-size: 18px;
    font-weight: 700;
    color: #201E1E;
}

.gc-modal__card-code {
    font-size: 16px;
    letter-spacing: 0.05em;
}

.gc-modal__steps {
    padding: 40px;
    background: #F8F9FD;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gc-modal__steps-title {
    margin: 0;
    font-weight: 700;
    font-size: 20px;
    color: #201E1E;
}

.gc-modal__steps-list {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.gc-modal__step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    min-width: 200px;
}

.gc-modal__step-num {
    flex-shrink: 0;
    color: rgba(0, 0, 0, 0.1);
    font-size: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gc-modal__step-text {
    color: #201E1E;
    line-height: 120%;
    margin: 0;
    font-size: 14px;
}

.gc-modal__step-text a {
    color: #ED2438;
    text-decoration: underline;
}

.gc-modal__steps-footer {
    color: #6C6F79;
    margin: 0;
    line-height: 1.6;
    font-size: 14px;
}

.gc-modal__steps-footer a {
    color: #ED2438;
    text-decoration: underline;
}

/* --- Hero --- */
.gc-hero {
    background-color: #201E1E;
    padding: 40px 0 0;
}

.gc-hero__inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.gc-hero__content {
    flex: 0 0 auto;
    padding-bottom: 50px;
}

.gc-hero__title {
    color: #ffffff;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    margin-top: 24px;
    margin-bottom: 0;
}

.gc-hero__image {
    flex: 0 0 auto;
    max-width: 480px;
    align-self: flex-end;
}

.gc-hero__image img {
    display: block;
    width: 100%;
    height: auto;
}

.gc-hero .breadcrumb,
.gc-hero .breadcrumb a,
.gc-hero .breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

.gc-hero .breadcrumb a:hover {
    color: #ffffff;
}

/* Order summary (left column on success) */
.gc-order-summary {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gc-order-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #E0E3ED;
}

.gc-order-summary__row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.gc-order-summary__key {
    color: #7B7B7B;
    flex-shrink: 0;
}

.gc-order-summary__value {
    text-align: right;
}

.gc-order-summary__row--greeting .gc-order-summary__value {
    font-style: italic;
    color: #201E1E;
}

/* Success state */
.gc-success {
    padding: 40px 0;
}

.gc-success__title {
    font-size: 25px;
    margin-bottom: 16px;
}

.gc-success__text {
    color: #201E1E;
    margin-bottom: 12px;
    line-height: 1.6;
}

.gc-success__actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.gc-success__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    text-decoration: none;
}

.gc-success__btn--secondary {
    border: 1px solid #ED2438;
    color: #ED2438;
    background: transparent;
    border-radius: 4px;
}

.gc-success__btn--secondary:hover {
    background: #ED2438;
    color: #fff;
}

/* Error messages */
.gc-field-error {
    display: block;
    color: #ED2438;
    font-size: 13px;
    margin-top: 4px;
    font-family: 'Kelson Sans Light';
}

/* ===== MEDIA QUERIES ===== */

@media (min-width: 1441px) {
    .gc-faq__inner {
        gap: 200px;
    }
}

@media (max-width: 1024px) {
    .gc__inner {
        flex-direction: column;
    }

    .gc__col--design {
        width: 100%;
    }

    .gc-step {
        padding: 0 20px 20px;
    }

    .gc-faq {
        min-height: auto;
    }

    .gc-faq__bg {
        opacity: 0.3;
    }

    .gc-faq__inner {
        flex-direction: column;
        gap: 40px;
    }

    .gc-faq__left {
        width: 100%;
    }

    .gc-hero__image {
        max-width: 360px;
    }

    .gc-hero__title {
        font-size: 34px;
    }
}

@media (max-width: 768px) {

    .hero-block {
        background-position: 350px 0px !important;
        background-size: cover !important;
    }

    .gc {
        padding: 24px 0 50px;
    }

    .gc-amount {
        flex-direction: row;
    }

    .gc-amount__qty {
        width: auto;
        justify-content: center;
    }

    .gc-delivery__schedule {
        flex-direction: column;
        gap: 0;
    }

    .gc-actions {
        flex-direction: column;
    }

    .gc-upload__title {
        font-size: 18px;
    }

    .gc-faq {
        padding: 50px 0;
    }

    .gc-faq__title {
        font-size: 36px;
    }

    .gc-faq__question {
        padding: 16px 18px;
        font-size: 15px;
    }

    .gc-modal__window {
        max-height: 80vh;
    }

    .gc-modal__hero {
        padding: 24px 20px;
    }

    .gc-modal__hero-image {
        width: 180px;
    }

    .gc-modal__hero-title {
        font-size: 36px;
    }

    .gc-modal__card-section {
        padding: 20px;
        flex-direction: column;
    }

    .gc-modal__card-image {
        width: 100%;
        height: auto;
    }

    .gc-modal__card-info {
        width: 100%;
        gap: 20px;
    }

    .gc-modal__steps {
        padding: 20px;
    }

    .gc-modal__steps-list {
        flex-direction: column;
    }

    .gc-hero__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .gc-hero__content {
        padding-bottom: 0;
    }

    .gc-hero__image {
        max-width: 100%;
        width: 100%;
    }

    .gc-hero__title {
        font-size: 28px;
    }
}

@media (max-width: 500px) {

    .hero-block {
        background-position: 60px 0px !important;
    }

    .gc-design__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gc-step {
        padding: 0 14px 16px;
    }

    .gc-faq__title {
        font-size: 28px;
    }

    .gc-modal__hero-image {
        width: 120px;
    }

    .gc-modal__hero-title {
        font-size: 28px;
    }

    .gc-modal__hero-text {
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .gc-amount__btn,
    .gc-amount__count {
        width: 48px;
        height: 48px;
    }

    .gc-faq {
        padding: 40px 0;
    }

    .gc-modal__hero {
        padding: 20px 16px;
    }

    .gc-modal__card-info {
        height: auto;
    }
}
