/* RSVP Form Styles */
.rsvp-question {
	font-size: 1.1rem;
	font-weight: 600;
	color: #333333;
	margin-bottom: 0.5rem;
	text-transform: none;
	letter-spacing: 0.05rem;
}

.rsvp-question .required {
	color: #c0392b;
}

/* E-Ticket Modal */
.eticket-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	z-index: 99999;
	justify-content: center;
	align-items: center;
	padding: 1rem;
	overflow-y: auto;
}

.eticket-modal.active {
	display: flex;
}

.eticket-modal-content {
	background: #ffffff;
	border-radius: 16px;
	padding: 2rem;
	max-width: 500px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	animation: eticketSlideUp 0.4s ease;
}

@keyframes eticketSlideUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.eticket-modal-content h3 {
	text-align: center;
	color: #333333;
	margin-bottom: 0.5rem;
}

.eticket-modal-content h3 i {
	color: #9b8aa5;
	margin-right: 0.5rem;
}

.eticket-success-msg {
	text-align: center;
	color: #666666;
	font-size: 0.9rem;
	margin-bottom: 1.5rem;
}

.eticket-close {
	position: absolute;
	top: 15px;
	right: 20px;
	font-size: 2rem;
	color: #999999;
	cursor: pointer;
	transition: color 0.3s ease;
	line-height: 1;
}

.eticket-close:hover {
	color: #333333;
}

/* E-Ticket Card */
.eticket-card {
	background: linear-gradient(135deg, #f8f5fa 0%, #f0f5f8 100%);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
	border: 2px solid #9b8aa5;
	position: relative;
}

.eticket-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 6px;
	background: linear-gradient(90deg, #9b8aa5, #7a9bb5, #9b8aa5);
}

.eticket-header {
	background: linear-gradient(135deg, #9b8aa5, #7a9bb5);
	padding: 1.5rem;
	text-align: center;
	color: #ffffff;
}

.eticket-couple-names {
	font-size: 1.8rem;
	font-weight: 700;
	letter-spacing: 0.3rem;
	text-transform: uppercase;
	margin-bottom: 0.25rem;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.eticket-event-type {
	font-size: 0.85rem;
	letter-spacing: 0.15rem;
	text-transform: uppercase;
	opacity: 0.9;
}

.eticket-body {
	padding: 1.5rem;
}

.eticket-guest-info {
	text-align: center;
	padding-bottom: 1rem;
	margin-bottom: 1rem;
	border-bottom: 1px dashed rgba(155, 138, 165, 0.3);
}

.eticket-guest-info .eticket-value {
	font-size: 1.4rem;
	font-weight: 700;
	color: #333333;
}

.eticket-details-row {
	display: flex;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.eticket-detail {
	flex: 1;
	text-align: center;
}

.eticket-label {
	font-size: 0.7rem;
	color: #888888;
	text-transform: uppercase;
	letter-spacing: 0.1rem;
	margin-bottom: 0.25rem;
}

.eticket-value {
	font-size: 0.95rem;
	color: #333333;
	font-weight: 600;
}

.eticket-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.5rem;
	background: rgba(155, 138, 165, 0.1);
	border-top: 1px dashed rgba(155, 138, 165, 0.3);
}

.eticket-qr {
	width: 80px;
	height: 80px;
	background: #ffffff;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.eticket-qr img,
.eticket-qr canvas {
	width: 70px;
	height: 70px;
}

.eticket-id {
	text-align: right;
}

.eticket-id .eticket-value {
	font-family: 'Courier New', monospace;
	font-size: 0.85rem;
	letter-spacing: 0.05rem;
}

.eticket-note {
	padding: 0.75rem 1.5rem;
	background: rgba(155, 138, 165, 0.15);
	font-size: 0.75rem;
	color: #666666;
	text-align: center;
}

.eticket-note i {
	color: #9b8aa5;
	margin-right: 0.5rem;
}

/* ============================================
   DOWNLOAD BUTTONS
   ============================================ */

.eticket-download-buttons {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 0.75rem;
	align-items: center;
}

.eticket-download-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.5rem 1.25rem;
	border: none;
	border-radius: 20px;
	font-size: 0.65rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	width: 100%;
	max-width: 180px;
	background: linear-gradient(135deg, #9b8aa5, #7a9bb5);
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(155, 138, 165, 0.3);
}

.eticket-download-btn:hover {
    opacity: 0.9;
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(155, 138, 165, 1);
}

.eticket-download-btn i {
	font-size: 0.65rem;
	color: #ffffff;
}

/* ============================================
   RESPONSIVE - EXTRA SMALL (height < 550px)
   ============================================ */

@media (max-height: 550px) {
	.eticket-download-buttons {
		margin-top: 0.5rem;
		gap: 0.35rem;
	}
	
	.eticket-download-btn {
		padding: 0.4rem 1rem;
		font-size: 0.55rem;
		max-width: 150px;
	}
	
	.eticket-download-btn i {
		font-size: 0.55rem;
	}
}

/* ============================================
   RESPONSIVE - SMALL (height 551px - 650px)
   ============================================ */

@media (min-height: 551px) and (max-height: 650px) {
	.eticket-download-buttons {
		gap: 0.4rem;
	}
	
	.eticket-download-btn {
		padding: 0.45rem 1.1rem;
		font-size: 0.6rem;
		max-width: 160px;
	}
	
	.eticket-download-btn i {
		font-size: 0.6rem;
	}
}

/* ============================================
   RESPONSIVE - MEDIUM (height 651px - 800px)
   ============================================ */

@media (min-height: 651px) and (max-height: 800px) {
	.eticket-download-buttons {
		gap: 0.5rem;
	}
	
	.eticket-download-btn {
		padding: 0.5rem 1.2rem;
		font-size: 0.65rem;
		max-width: 170px;
	}
	
	.eticket-download-btn i {
		font-size: 0.65rem;
	}
}

/* ============================================
   RESPONSIVE - LARGE (height > 800px)
   ============================================ */

@media (min-height: 801px) {
	.eticket-download-buttons {
		margin-top: 1rem;
		gap: 0.6rem;
	}
	
	.eticket-download-btn {
		padding: 0.55rem 1.4rem;
		font-size: 0.7rem;
		max-width: 190px;
	}
	
	.eticket-download-btn i {
		font-size: 0.7rem;
	}
}

/* ============================================
   RESPONSIVE - EXTRA LARGE (height > 900px)
   ============================================ */

@media (min-height: 901px) and (min-width: 769px) {
	.eticket-download-buttons {
		margin-top: 1.25rem;
		gap: 0.75rem;
	}
	
	.eticket-download-btn {
		padding: 0.6rem 1.5rem;
		font-size: 0.75rem;
		max-width: 200px;
	}
	
	.eticket-download-btn i {
		font-size: 0.75rem;
	}
}

/* E-Ticket Modal */
.eticket-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.95);
	z-index: 100000;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.eticket-modal.active {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 1rem;
}

.eticket-modal-content {
	background: #ffffff;
	border-radius: 12px;
	padding: 1.5rem;
	width: 100%;
	max-width: 360px;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	animation: eticketSlideUp 0.4s ease;
}

@keyframes eticketSlideUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.eticket-modal-content h3 {
	text-align: center;
	color: #333333;
	margin: 0 0 0.25rem 0;
	font-size: 1rem;
}

.eticket-modal-content h3 i {
	color: #9b8aa5;
	margin-right: 0.4rem;
}

.eticket-success-msg {
	text-align: center;
	color: #666666;
	font-size: 0.75rem;
	margin: 0 0 1rem 0;
}

.eticket-close {
	position: absolute;
	top: 8px;
	right: 12px;
	font-size: 1.5rem;
	color: #999999;
	cursor: pointer;
	transition: color 0.3s ease;
	line-height: 1;
	z-index: 10;
}

.eticket-close:hover {
	color: #333333;
}

/* E-Ticket Card */
.eticket-card {
	background: linear-gradient(135deg, #f8f5fa 0%, #f0f5f8 100%);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	border: 2px solid #9b8aa5;
}

.eticket-header {
	background: linear-gradient(135deg, #9b8aa5, #7a9bb5);
	padding: 0.75rem;
	text-align: center;
	color: #ffffff;
}

.eticket-couple-names {
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: 0.15rem;
	text-transform: uppercase;
	margin-bottom: 0.1rem;
}

.eticket-event-type {
	font-size: 0.65rem;
	letter-spacing: 0.08rem;
	text-transform: uppercase;
	opacity: 0.9;
}

.eticket-body {
	padding: 0.75rem;
}

.eticket-guest-info {
	text-align: center;
	padding-bottom: 0.5rem;
	margin-bottom: 0.5rem;
	border-bottom: 1px dashed rgba(155, 138, 165, 0.3);
}

.eticket-guest-info .eticket-label {
	font-size: 0.6rem;
}

.eticket-guest-info .eticket-value {
	font-size: 1rem;
	font-weight: 700;
	color: #333333;
}

.eticket-details-row {
	display: flex;
	justify-content: space-between;
	margin-bottom: 0.5rem;
}

.eticket-details-row:last-child {
	margin-bottom: 0;
}

.eticket-detail {
	flex: 1;
	text-align: center;
}

.eticket-label {
	font-size: 0.55rem;
	color: #888888;
	text-transform: uppercase;
	letter-spacing: 0.03rem;
	margin-bottom: 0.15rem;
}

.eticket-value {
	font-size: 0.75rem;
	color: #333333;
	font-weight: 600;
}

.eticket-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.5rem 0.75rem;
	background: rgba(155, 138, 165, 0.1);
	border-top: 1px dashed rgba(155, 138, 165, 0.3);
}

.eticket-qr {
	width: 60px;
	height: 60px;
	background: #ffffff;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	flex-shrink: 0;
	overflow: hidden;
	padding: 4px;
}

.eticket-qr img,
.eticket-qr canvas {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
}
/* Extra Small */
@media (max-height: 550px) {
	.eticket-qr {
		width: 45px;
		height: 45px;
		padding: 3px;
	}
}

/* Small */
@media (min-height: 551px) and (max-height: 650px) {
	.eticket-qr {
		width: 50px;
		height: 50px;
		padding: 3px;
	}
}

/* Medium */
@media (min-height: 651px) and (max-height: 800px) {
	.eticket-qr {
		width: 55px;
		height: 55px;
		padding: 4px;
	}
}

/* Large */
@media (min-height: 801px) {
	.eticket-qr {
		width: 65px;
		height: 65px;
		padding: 5px;
	}
}

/* Extra Large */
@media (min-height: 901px) and (min-width: 769px) {
	.eticket-qr {
		width: 75px;
		height: 75px;
		padding: 5px;
	}
}

.eticket-id {
	text-align: right;
}

.eticket-id .eticket-label {
	font-size: 0.55rem;
}

.eticket-id .eticket-value {
	font-family: 'Courier New', monospace;
	font-size: 0.65rem;
	letter-spacing: 0.02rem;
}

.eticket-note {
	padding: 0.4rem 0.75rem;
	background: rgba(155, 138, 165, 0.15);
	font-size: 0.6rem;
	color: #666666;
	text-align: center;
}

.eticket-note i {
	color: #9b8aa5;
	margin-right: 0.3rem;
}

/* Download Buttons */
.eticket-download-buttons {
	display: flex;
	gap: 0.5rem;
	margin-top: 1rem;
	justify-content: center;
}

.eticket-download-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
	padding: 0.5rem 1rem;
	border: none;
	border-radius: 20px;
	font-size: 0.7rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	flex: 1;
}

.eticket-btn-primary {
	background: linear-gradient(135deg, #9b8aa5, #7a9bb5);
	color: #ffffff;
}

.eticket-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(155, 138, 165, 0.4);
}

.eticket-btn-secondary {
	background: #ffffff;
	color: #333333;
	border: 2px solid #9b8aa5;
}

.eticket-btn-secondary:hover {
	background: rgba(155, 138, 165, 0.1);
	transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Extra Small Screens (phones in portrait) */
@media (max-height: 600px) {
	.eticket-modal.active {
		align-items: flex-start;
		padding: 0.5rem;
	}
	
	.eticket-modal-content {
		padding: 1rem;
		max-height: none;
		margin: 0.5rem 0;
	}
	
	.eticket-modal-content h3 {
		font-size: 0.9rem;
	}
	
	.eticket-success-msg {
		font-size: 0.65rem;
		margin-bottom: 0.75rem;
	}
	
	.eticket-header {
		padding: 0.5rem;
	}
	
	.eticket-couple-names {
		font-size: 0.95rem;
	}
	
	.eticket-body {
		padding: 0.5rem;
	}
	
	.eticket-guest-info .eticket-value {
		font-size: 0.9rem;
	}
	
	.eticket-footer {
		padding: 0.4rem 0.5rem;
	}
	
	.eticket-qr {
		width: 40px;
		height: 40px;
	}
	
	.eticket-qr img,
	.eticket-qr canvas {
		width: 34px !important;
		height: 34px !important;
	}
	
	.eticket-download-buttons {
		margin-top: 0.75rem;
	}
	
	.eticket-download-btn {
		padding: 0.4rem 0.75rem;
		font-size: 0.65rem;
	}
}

/* Small Screens (phones in landscape, small tablets) */
@media (min-height: 601px) and (max-height: 750px) {
	.eticket-modal-content {
		padding: 1.25rem;
	}
	
	.eticket-couple-names {
		font-size: 1rem;
	}
	
	.eticket-guest-info .eticket-value {
		font-size: 0.95rem;
	}
}

/* Medium Screens (tablets) */
@media (min-height: 751px) and (min-width: 481px) {
	.eticket-modal-content {
		max-width: 380px;
		padding: 1.5rem;
	}
	
	.eticket-modal-content h3 {
		font-size: 1.1rem;
	}
	
	.eticket-success-msg {
		font-size: 0.8rem;
	}
	
	.eticket-couple-names {
		font-size: 1.2rem;
	}
	
	.eticket-event-type {
		font-size: 0.7rem;
	}
	
	.eticket-guest-info .eticket-value {
		font-size: 1.1rem;
	}
	
	.eticket-value {
		font-size: 0.8rem;
	}
	
	.eticket-qr {
		width: 55px;
		height: 55px;
	}
	
	.eticket-qr img,
	.eticket-qr canvas {
		width: 46px !important;
		height: 46px !important;
	}
	
	.eticket-download-btn {
		padding: 0.55rem 1.1rem;
		font-size: 0.75rem;
	}
}

/* Large Screens (desktops) */
@media (min-height: 801px) {
	.eticket-modal.active {
		padding: 1.5rem;
	}
	
	.eticket-modal-content {
		max-width: 420px;
		padding: 1.5rem;
	}
	
	.eticket-modal-content h3 {
		font-size: 1.1rem;
		margin-bottom: 0.4rem;
	}
	
	.eticket-success-msg {
		font-size: 0.8rem;
		margin-bottom: 1rem;
	}
	
	.eticket-close {
		top: 10px;
		right: 15px;
		font-size: 1.6rem;
	}
	
	.eticket-header {
		padding: 0.85rem;
	}
	
	.eticket-couple-names {
		font-size: 1.3rem;
		letter-spacing: 0.18rem;
	}
	
	.eticket-event-type {
		font-size: 0.7rem;
	}
	
	.eticket-body {
		padding: 0.85rem;
	}
	
	.eticket-guest-info {
		padding-bottom: 0.6rem;
		margin-bottom: 0.6rem;
	}
	
	.eticket-guest-info .eticket-label {
		font-size: 0.6rem;
	}
	
	.eticket-guest-info .eticket-value {
		font-size: 1.15rem;
	}
	
	.eticket-details-row {
		margin-bottom: 0.5rem;
	}
	
	.eticket-label {
		font-size: 0.55rem;
	}
	
	.eticket-value {
		font-size: 0.85rem;
	}
	
	.eticket-footer {
		padding: 0.6rem 0.85rem;
	}
	
	.eticket-qr {
		width: 65px;
		height: 65px;
	}
	
	.eticket-qr img,
	.eticket-qr canvas {
		width: 55px !important;
		height: 55px !important;
	}
	
	.eticket-id .eticket-label {
		font-size: 0.55rem;
	}
	
	.eticket-id .eticket-value {
		font-size: 0.7rem;
	}
	
	.eticket-note {
		padding: 0.45rem 0.85rem;
		font-size: 0.6rem;
	}
	
	.eticket-download-buttons {
		margin-top: 1.25rem;
		gap: 0.75rem;
	}
	
	.eticket-download-btn {
		padding: 0.6rem 1.25rem;
		font-size: 0.75rem;
		max-width: none;
	}
	
	.eticket-download-btn i {
		font-size: 0.7rem;
	}
}
@media (min-height: 901px) and (min-width: 769px) {
	.eticket-modal-content {
		max-width: 450px;
		padding: 1.75rem;
	}
	
	.eticket-modal-content h3 {
		font-size: 1.2rem;
	}
	
	.eticket-success-msg {
		font-size: 0.85rem;
	}
	
	.eticket-header {
		padding: 1rem;
	}
	
	.eticket-couple-names {
		font-size: 1.5rem;
		letter-spacing: 0.2rem;
	}
	
	.eticket-event-type {
		font-size: 0.75rem;
	}
	
	.eticket-body {
		padding: 1rem;
	}
	
	.eticket-guest-info .eticket-value {
		font-size: 1.25rem;
	}
	
	.eticket-value {
		font-size: 0.9rem;
	}
	
	.eticket-qr {
		width: 75px;
		height: 75px;
	}
	
	.eticket-qr img,
	.eticket-qr canvas {
		width: 65px !important;
		height: 65px !important;
	}
	
	.eticket-id .eticket-value {
		font-size: 0.75rem;
	}
	
	.eticket-note {
		font-size: 0.65rem;
	}
	
	.eticket-download-buttons {
		margin-top: 1.5rem;
		gap: 1rem;
	}
	
	.eticket-download-btn {
		padding: 0.7rem 1.5rem;
		font-size: 0.8rem;
	}
	
	.eticket-download-btn i {
		font-size: 0.75rem;
	}
}

/* Width-based adjustments for very narrow screens */
@media (max-width: 350px) {
	.eticket-modal.active {
		padding: 0.5rem;
	}
	
	.eticket-modal-content {
		padding: 0.75rem;
	}
	
	.eticket-couple-names {
		font-size: 0.9rem;
		letter-spacing: 0.1rem;
	}
	
	.eticket-download-buttons {
		flex-direction: column;
		gap: 0.4rem;
	}
	
	.eticket-download-btn {
		width: 100%;
	}
}