/* Bytesis Donation Form — Pixel-perfect Figma match */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600&display=swap');

/* =========================================
   FORM CARD
   ========================================= */
.bytesis-donation-form-wrapper {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    gap: 32px;
    width: 612px;
    max-width: 100%;
    background: #FFFFFF;
    border: 1px solid #EBEBEB;
    border-radius: 12px;
    margin: 0 auto;
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Inner frame */
.bytesis-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 24px;
    width: 100%;
}

/* =========================================
   HEADER — Title + Subtitle
   ========================================= */
.bytesis-form-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 8px;
    width: 100%;
}

.bytesis-form-title {
    font-family: 'Geist', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: -0.5px;
    color: #03030B;
    margin: 0;
}

.bytesis-form-subtitle {
    font-family: 'Geist', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: -0.5px;
    color: #03030B;
    opacity: 0.8;
    margin: 0;
}

/* =========================================
   FORM FIELDS CONTAINER
   ========================================= */
.bytesis-fields-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 16px;
    width: 100%;
}

/* =========================================
   INDIVIDUAL FIELD GROUP (label + input)
   ========================================= */
.bytesis-form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 8px;
    width: 100%;
}

/* =========================================
   SIDE-BY-SIDE ROW (Email + Phone)
   ========================================= */
.bytesis-form-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0;
    gap: 10px;
    width: 100%;
}

.bytesis-form-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

/* =========================================
   LABELS
   ========================================= */
.bytesis-label {
    font-family: 'Geist', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: -0.02em;
    color: #03030B;
}

/* =========================================
   TEXT INPUTS & SELECT
   ========================================= */
.bytesis-input {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 16px 20px;
    gap: 8px;
    width: 100%;
    height: 52px;
    background: #FFFFFF;
    border: 1px solid #EBEBEB !important;
    border-radius: 6px;
    font-family: 'Geist', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.4px;
    color: #03030B;
    outline: none;
    box-shadow: none !important;
    transition: border-color 0.15s;
}

.bytesis-input::placeholder {
    color: #7B7B7B;
    font-weight: 400;
}

.bytesis-input:focus {
    border-color: #0077FF !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Select dropdown */
select.bytesis-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23141B34' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 24px;
    padding-right: 48px;
    cursor: pointer;
}

/* =========================================
   CUSTOM SELECT (Choose Fund)
   ========================================= */
.bytesis-fund-group {
    position: relative;
}

.bytesis-custom-select {
    box-sizing: border-box;
    position: relative;
    width: 100%;
    cursor: pointer;
    user-select: none;
}

.bytesis-custom-select__trigger {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    width: 100%;
    height: 52px;
    background: #FFFFFF;
    border: 1px solid #EBEBEB;
    border-radius: 6px;
    font-family: 'Geist', sans-serif;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.4px;
    color: #03030B;
    transition: border-color 0.15s;
}

.bytesis-custom-select__trigger svg {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.bytesis-custom-select.open .bytesis-custom-select__trigger {
    border-color: #0077FF;
    border-radius: 6px 6px 0 0;
}

.bytesis-custom-select.open .bytesis-custom-select__trigger svg {
    transform: rotate(180deg);
}

.bytesis-custom-select__options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1px solid #0077FF;
    border-top: none;
    border-radius: 0 0 6px 6px;
    z-index: 200;
    overflow: hidden;
}

.bytesis-custom-select.open .bytesis-custom-select__options {
    display: block;
}

.bytesis-custom-select__option {
    padding: 13px 20px;
    font-family: 'Geist', sans-serif;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.4px;
    color: #03030B;
    cursor: pointer;
    transition: background 0.1s;
}

.bytesis-custom-select__option:hover {
    background: #F0F7FF;
}

.bytesis-custom-select__option.selected {
    background: #0077FF;
    color: #FFFFFF;
}

/* =========================================
   AMOUNT BUTTONS ROW
   ========================================= */
.bytesis-amount-buttons {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0;
    gap: 10px;
    width: 100%;
}

.bytesis-preset-btn {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 16px 20px;
    gap: 8px;
    height: 52px;
    flex: 1;
    background: #FFFFFF !important;
    border: 1px solid #EBEBEB !important;
    border-radius: 6px !important;
    font-family: 'Geist', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    letter-spacing: -0.4px;
    color: #7B7B7B !important;
    cursor: pointer;
    transition: border-color 0.15s;
}

.bytesis-preset-btn:hover {
    background: #FFFFFF !important;
    border-color: #000000 !important;
    color: #03030B !important;
}

.bytesis-preset-btn.active {
    background: #FFFFFF !important;
    border: 1px solid #0077FF !important;
    color: #03030B !important;
}

.bytesis-preset-btn:focus {
    outline: none !important;
    background: #FFFFFF !important;
    border-color: #0077FF !important;
    color: #03030B !important;
    box-shadow: none !important;
}

/* Custom amount input */
.bytesis-custom-amount-wrapper {
    width: 100%;
}

.bytesis-custom-amount-wrapper .bytesis-input {
    height: 54px;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: -0.5px;
    color: #03030B;
}

/* =========================================
   DONATE BUTTON
   ========================================= */
.bytesis-btn-donate {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0 40px;
    width: 100%;
    height: 56px;
    background: #0077FF !important;
    border: none !important;
    border-radius: 12px !important;
    font-family: 'Geist', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: -0.7px;
    color: #FFFFFF !important;
    cursor: pointer;
    transition: background-color 0.2s;
}

.bytesis-btn-donate:hover {
    background: #000000 !important;
    opacity: 1;
}

.bytesis-btn-donate:focus {
    outline: 2px solid #0077FF;
    outline-offset: 2px;
}

.bytesis-btn-donate:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =========================================
   TERMS TEXT
   ========================================= */
.bytesis-form-terms {
    font-family: 'Geist', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    letter-spacing: -0.64px;
    color: #7B7B7B;
    margin: 0;
    width: 100%;
}

.bytesis-form-terms a {
    color: #0077FF;
    text-decoration: underline;
}

.bytesis-form-terms a:hover {
    opacity: 0.8;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 640px) {
    .bytesis-donation-form-wrapper {
        width: 100%;
        padding: 24px 20px;
        border-radius: 8px;
    }

    .bytesis-form-row {
        flex-direction: column;
        gap: 16px;
    }

    .bytesis-form-col {
        width: 100%;
    }

    .bytesis-amount-buttons {
        flex-wrap: wrap;
        gap: 8px;
    }

    .bytesis-preset-btn {
        flex: 1 0 calc(33.33% - 6px);
        min-width: 0;
    }
}
