/* Form input container styles */
.input-container {
    position: relative;
    width: 100%;
}

/* Icon container styles */
.icon-container {
    position: absolute;
    left: 12px;
    top: 14px;
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 1;
}

/* Input field styles */
.input-field {
    width: 100%;
    height: 48px;
    padding: 12px 16px 12px 40px;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
    line-height: 24px;
}

/* Payment form specific styles */
.payment-row {
    display: flex;
    gap: 16px;
    width: 100%;
    align-items: stretch;
}

.payment-col {
    flex: 1;
    min-width: 0; /* Prevent flex item from overflowing */
    width: 100%;
}

.payment-col .input-container {
    width: 100%;
}

#expiry.input-field,
#cvv.input-field {
    width: 100%;
    text-align: left;
    padding: 12px 16px 12px 40px;
    box-sizing: border-box;
    min-width: 0;
    flex-shrink: 1;
}

/* Remove transition from payment inputs to prevent expansion */
#expiry.input-field,
#cvv.input-field {
    transition: border-color 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: #8B1874;
    box-shadow: 0 0 0 2px rgba(139, 24, 116, 0.1);
    width: 100%;
}

/* Error state styles */
.input-field.error {
    border-color: #EF4444;
    background-color: #FEF2F2;
}

.error-message {
    color: #EF4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.visible {
    display: block;
}

/* Loading state styles */
.input-field.loading {
    background-color: #F3F4F6;
    color: #9CA3AF;
    cursor: wait;
}

.input-field.loading::placeholder {
    color: #9CA3AF;
}

/* Disable input while loading */
.input-field.loading:disabled {
    opacity: 0.7;
}

/* Icon colors */
.icon-default {
    color: #9CA3AF;
}

.icon-error {
    color: #EF4444;
}
