/* GiftUp Purchase Form Styles */

.giftup-purchase-form-wrapper {
	max-width: 600px;
	margin: 2rem auto;
	padding: 2rem;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

.giftup-purchase-form-title {
	font-size: 1.75rem;
	font-weight: 600;
	margin: 0 0 0.5rem 0;
	color: #333;
}

.giftup-purchase-form-description {
	font-size: 1rem;
	color: #666;
	margin: 0 0 2rem 0;
}

.giftup-form-section {
	margin-bottom: 2rem;
}

.giftup-form-section:last-of-type {
	margin-bottom: 0;
}

.giftup-form-section-title {
	font-size: 1.1rem;
	font-weight: 500;
	margin: 0 0 1rem 0;
	color: #333;
	border-bottom: 2px solid #f0f0f0;
	padding-bottom: 0.5rem;
}

.giftup-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

@media (max-width: 640px) {
	.giftup-form-row {
		grid-template-columns: 1fr;
	}
}

.giftup-form-group {
	display: flex;
	flex-direction: column;
}

.giftup-form-label {
	font-weight: 500;
	margin-bottom: 0.5rem;
	color: #333;
	font-size: 0.95rem;
}

.giftup-form-input,
.giftup-form-textarea {
	padding: 0.75rem 1rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 1rem;
	font-family: inherit;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.giftup-form-input:focus,
.giftup-form-textarea:focus {
	outline: none;
	border-color: #007cba;
	box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.giftup-form-textarea {
	resize: vertical;
	min-height: 100px;
}

/* Amount Selector */
.giftup-amount-selector {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.giftup-amount-option {
	display: block;
	position: relative;
	cursor: pointer;
}

.giftup-amount-option input[type="radio"] {
	position: absolute;
	opacity: 0;
	cursor: pointer;
}

.giftup-amount-option span {
	display: block;
	padding: 0.75rem 1rem;
	text-align: center;
	border: 2px solid #ddd;
	border-radius: 4px;
	font-weight: 500;
	transition: all 0.2s;
	background: #f9f9f9;
}

.giftup-amount-option input[type="radio"]:checked + span {
	border-color: #007cba;
	background: #007cba;
	color: white;
}

.giftup-amount-option:hover span {
	border-color: #ccc;
}

.giftup-custom-amount {
	margin-top: 1rem;
}

/* Submit Button */
.giftup-form-submit {
	width: 100%;
	padding: 1rem;
	background: #007cba;
	color: white;
	border: none;
	border-radius: 4px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s, transform 0.1s;
	margin-top: 1rem;
}

.giftup-form-submit:hover {
	background: #005a87;
}

.giftup-form-submit:active {
	transform: scale(0.98);
}

.giftup-form-submit:disabled {
	background: #ccc;
	cursor: not-allowed;
	opacity: 0.6;
}

/* Error State */
.giftup-error {
	padding: 1rem;
	background: #fee;
	border: 1px solid #fcc;
	border-radius: 4px;
	color: #c33;
	margin: 1rem 0;
}

/* Responsive adjustments */
@media (max-width: 640px) {
	.giftup-purchase-form-wrapper {
		padding: 1.5rem;
		border-radius: 4px;
	}

	.giftup-purchase-form-title {
		font-size: 1.5rem;
	}

	.giftup-form-input,
	.giftup-form-textarea {
		font-size: 16px; /* Prevent zoom on iOS */
	}

	.giftup-amount-selector {
		grid-template-columns: repeat(2, 1fr);
	}
}
