* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    background-color: #450a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.form-container {
    width: 100%;
    max-width: 28rem;
    backdrop-filter: blur(24px);
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.form-header {
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.form-header h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

form {
    position: relative;
    z-index: 10;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.375rem;
    color: white;
    font-size: 0.875rem;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.price-wrapper {
    position: relative;
}

.price-wrapper input {
    padding-right: 6rem;
}

.price-suffix {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    pointer-events: none;
}

.price-suffix img {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
}

.price-suffix span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

button {
    width: 100%;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 0.375rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

button img {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
}

/* Remove number input arrows */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    background-color: #450a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.success-container {
    width: 100%;
    max-width: 28rem;
    backdrop-filter: blur(24px);
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: rgba(34, 197, 94, 0.2);
    border: 2px solid rgba(34, 197, 94, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.checkmark {
    width: 40px;
    height: 40px;
    stroke: #22c55e;
    stroke-width: 3;
    stroke-linecap: round;
    fill: none;
    animation: draw 0.5s ease-out 0.3s forwards;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

h1 {
    color: white;
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.success-message {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.order-details {
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.detail-value {
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-value img {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

button, a {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.primary-button {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
}

.primary-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.secondary-button {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.secondary-button:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.transaction-id {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    margin-top: 1.5rem;
    font-family: 'Courier New', monospace;
}

/* ================================
   MOBILE SUPPORT
   ================================ */

@media (max-width: 640px) {
    body {
        padding: 0.5rem;
    }

    .form-container {
        padding: 1.25rem;
        max-width: 90%;
        border-width: 1px;
    }

    .form-header h2 {
        font-size: 1.25rem;
    }

    .form-header p {
        font-size: 0.75rem;
    }

    input {
        padding: 0.45rem 0.7rem;
        font-size: 0.8rem;
    }

    .price-suffix img {
        width: 1rem;
        height: 1rem;
    }

    .price-suffix span {
        font-size: 0.8rem;
    }

    button {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 400px) {
    .form-container {
        padding: 1rem;
        max-width: 95%;
    }

    .form-header h2 {
        font-size: 1.1rem;
    }

    .form-header p {
        font-size: 0.7rem;
    }

    label {
        font-size: 0.8rem;
    }

    input {
        font-size: 0.75rem;
    }

    button {
        font-size: 0.8rem;
        padding: 0.55rem;
    }
}
