/* ===========================
   VARIABLES
=========================== */
:root {
    --red: #E2121B;
    --red-dark: #a80016;
    --text-dark: #1a1a1a;
    --text-muted: #999;
    --border: #e8e8e8;
    --input-h: 54px;
    --radius: 100px;
    --radius-sm: 14px;
}

/* ===========================
   FORM WRAPPER
=========================== */
.application_form {
    max-width: 1440px;
    margin: 0 auto;
    font-family: 'Manrope', sans-serif;
}

/* ===========================
   STEP VISIBILITY
=========================== */
.step-content {
    display: none;
}
.step-content.active {
    display: block;
}

/* ===========================
   STEP LAYOUT: 2 columns
=========================== */
.step-layout {
    display: flex;
    gap: 48px;
    align-items: start;
}

/* ===========================
   LEFT COLUMN
=========================== */
.step-label-col {
	position: sticky;
	top: 100px;
    display: flex;
    gap: 32px;
    flex: 1;
}

.step-number {
    font-size: 64px;
    font-weight: 400;
    line-height: 1;
    color: #757575;
}

.label-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step-heading {
    margin: 0;
    font-size: 48px;
    font-weight: 300;
    color: var(--text-dark);
}

.step-heading .red {
    color: var(--red);
    font-weight: 600;
}

.step-desc {
    font-size: 24px;
    color: var(--text-muted);
    margin: 0;
}

/* ===========================
   RIGHT COLUMN
=========================== */
.step-fields-col {
    flex: 1;
    min-width: 0; /* parandalon overflow nga flex child */
}

.fields-section-title {
    font-size: 32px;
    margin-bottom: 32px;
    font-weight: 500;
    color: var(--text-dark);
    letter-spacing: 1px;
}

/* ===========================
   FORM ROWS
=========================== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.form-row.single {
    grid-template-columns: 1fr;
}

/* ===========================
   INPUTS
=========================== */
.application_form input[type="text"],
.application_form input[type="email"],
.application_form textarea {
    width: 100%;
    height: var(--input-h);
    padding: 0 22px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    color: var(--text-dark);
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.application_form input[type="text"]::placeholder,
.application_form input[type="email"]::placeholder {
    color: #bbb;
}

.application_form input[type="text"]:focus,
.application_form input[type="email"]:focus,
.application_form textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(208, 2, 27, 0.08);
}

.application_form input.error {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(208, 2, 27, 0.1);
}

.application_form textarea {
    height: auto;
    padding: 16px 22px;
    resize: vertical;
    border-radius: 32px;
    line-height: 1.6;
}

.section-gap {
    margin-top: 32px;
    margin-bottom: 32px;
}

/* ===========================
   DATETIME LAYOUT
=========================== */
.datetime-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: start;
    width: 100%;
}

.calendar-box {
    width: 100%;
    overflow-x: hidden;
}

.time-box {
    min-width: 0;
    width: 100%;
}

/* ===========================
   TIME BUTTONS
=========================== */
#appointment_times {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 4px;
}

.time-btn {
    padding: 12px 20px !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 32px !important;
    background: transparent !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    color: var(--text-dark) !important;
    cursor: pointer;
    transition: all 0.18s;
    white-space: nowrap;
    text-align: center;
}

tr {
    background: #fff !important;
}

tr:hover,
tr:hover td {
    background: transparent !important;
}

.time-btn:hover {
    background: var(--red) !important;
    color: #fff !important;
}

.time-btn.selected {
    background: var(--red) !important;
    border-color: var(--red);
    color: #fff !important;
    font-weight: 600;
}

.time-btn:disabled,
.time-btn.booked {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* ===========================
   BUTTONS
=========================== */
.step-actions {
    display: flex;
    gap: 12px;
    margin-top: 36px;
    align-items: center;
}

.btn-red {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 15px 32px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.01em;
}

.btn-red:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
}

.btn-red:active {
    transform: translateY(0);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-muted);
    border: 1.5px solid var(--border);
    border-radius: 100px;
    padding: 15px 28px;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover {
    border-color: #aaa;
    color: var(--text-dark);
}

/* ===========================
   DATEPICKER OVERRIDES
=========================== */
#appointment_datepicker .ui-datepicker {
    display: flex !important;
    flex-direction: column;
    gap: 32px;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    font-size: 13px;
    width: 100% !important;
}

.ui-datepicker .ui-datepicker-header {
    background: transparent !important;
    border: none !important;
    color: var(--text-dark);
    font-weight: 700;
    padding: 0 0 16px !important;
    display: flex;
    align-items: center;
}

.ui-datepicker .ui-datepicker-title {
    color: var(--red);
    font-weight: 700;
    font-size: 24px;
    line-height: 1;
    margin: 0 !important;
    flex: 1;
	font-family: "Manrope", sans-serif;
    text-align: start !important;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    position: relative !important;
    top: auto !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    width: 24px !important;
    height: 24px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ui-datepicker .ui-datepicker-prev {
    left: auto !important;
    right: auto !important;
    order: 2;
}

.ui-datepicker .ui-datepicker-next {
    right: auto !important;
    order: 3;
}

.ui-datepicker .ui-icon {
    background-image: none !important;
    text-indent: 0 !important;
    overflow: visible !important;
    font-size: 0;
    width: 24px !important;
    height: 24px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ui-datepicker .ui-datepicker-prev .ui-icon::after {
    content: '';
    display: block;
    width: 20px;
    height: 24px;
    background-image: url('/wp-content/uploads/2026/04/prev-carousel-arrow.svg');
    background-size: contain;
    margin-left: -20px;
    background-repeat: no-repeat;
    background-position: center;
}

.ui-datepicker .ui-datepicker-next .ui-icon::after {
    content: '';
    display: block;
    width: 20px;
    height: 24px;
    background-image: url('/wp-content/uploads/2026/04/next-carousel-arrow.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.ui-state-disabled,
.ui-widget-content .ui-state-disabled,
.ui-widget-header .ui-state-disabled {
    filter: grayscale(1);
    opacity: 0.5 !important;
}

.ui-state-default,
.ui-widget-content .ui-state-default,
.ui-widget-header .ui-state-default,
.ui-button,
html .ui-button.ui-state-disabled:hover,
html .ui-button.ui-state-disabled:active {
    background: #f1f1f1 !important;
}

/* ===========================
   DATEPICKER TABLE
=========================== */
.ui-datepicker table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    table-layout: fixed;
}

.ui-datepicker table thead { display: table-header-group !important; }
.ui-datepicker table tbody {     
	display: flex !important;
    flex-direction: column;
    gap: 24px;}
.ui-datepicker table tr   { 
    display: flex !important; gap: 24px; background: transparent !important; }
.ui-datepicker table td,
.ui-datepicker table th   { display: table-cell !important; }
.ui-datepicker thead tr {justify-content: space-around;}
.ui-datepicker thead th {
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 400;
    padding: 0 0 12px;
    text-align: center;
    letter-spacing: 0.04em;
}

.ui-datepicker tbody tr:hover { background-color: transparent !important; }

.ui-datepicker tbody td {
    width: calc(100% / 7);
}

.ui-datepicker td a,
.ui-datepicker td span {
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    font-size: 24px;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.15s;
    font-weight: 400;
    margin: 0 auto;
    border: none !important;
    box-sizing: border-box;
}


.ui-datepicker td a:hover {
    background: #f5f5f5;
}

.ui-datepicker .ui-state-active {
    background: var(--red) !important;
    color: #fff !important;
    border-radius: 50% !important;
    font-weight: 600 !important;
}

.ui-datepicker .ui-state-disabled {
    opacity: 1;
}

.ui-datepicker .ui-state-disabled span {
    color: #d8d8d8 !important;
    background: #f7f7f7;
    border-radius: 50%;
}

.ui-datepicker .ui-datepicker-today a {
    font-weight: 700;
    color: var(--red);
}

/* Anulo striped globals */
table tbody > tr:nth-child(odd) > td,
table tbody > tr:nth-child(odd) > th {
    background: transparent !important;
}

table caption+thead tr:first-child td,
table caption+thead tr:first-child th,
table colgroup+thead tr:first-child td,
table colgroup+thead tr:first-child th,
table thead:first-child tr:first-child td,
table thead:first-child tr:first-child th {
    border: none !important;
}

/* ===========================
   SUCCESS STATE
=========================== */
.appointment-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: transparent;
    border: 1px solid #cfe8d5;
    border-radius: 24px;
    padding: 48px 32px;
    margin-top: 24px;
}

.appointment-success-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 20px;
}

.appointment-success h3 {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
    color: #111827;
}

.appointment-success p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #6b7280;
    max-width: 500px;
}

/* ===========================
   LOADER
=========================== */
#appointment-loader {
    display: none;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.prev-step, .submit-btn, .next-step {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.fields-section-title:has(+ input + #appointment_times:empty) {
    display: none;
}

.spinner {
    width: 28px;
    height: 28px;
    border: 2px solid #eee;
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1290px) {
	
	.ui-datepicker td span, .ui-datepicker td a {
		transform: scale(0.95);
	}
	
	.ui-datepicker table tbody {    
    	gap: 16px;
	}
.ui-datepicker table tr   {  gap: 16px; }
}

@media (max-width: 1024px) {
	
	.ui-datepicker td span, .ui-datepicker td a {
		transform: scale(0.9);
	}
	
	
	.step-fields-col {
		width: 100%;
	}
	
	.step-label-col {
		position: static;
		width: 100%;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}
	
    .step-layout { flex-direction: column; gap: 32px; }
	
	.ui-datepicker table tbody {    
    	gap: 10px;
	}
.ui-datepicker table tr   {  gap: 10px; }
    
}

@media (max-width: 860px) {
	
	.ui-datepicker td span, .ui-datepicker td a {
		transform: scale(1);
	}
	
	.step-fields-col {
		width: 100%;
	}
	
	.step-label-col {
		width: 100%;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}
	
    .step-number  { font-size: 48px; text-align:center;}
    .step-heading { font-size: 32px;text-align:center; }
    .fields-section-title { font-size: 24px; margin-bottom: 24px; text-align:center;}

	.step-desc {
   	 font-size: 20px;
		text-align:center;
	}
	
	.ui-datepicker .ui-datepicker-prev .ui-icon::after {
    content: '';
    display: block;
    width: 15px;
    height: 20px;
    background-image: url('/wp-content/uploads/2026/04/prev-carousel-arrow.svg');
    background-size: contain;
    margin-left: -20px;
    background-repeat: no-repeat;
    background-position: center;
}
	.ui-datepicker .ui-datepicker-next .ui-icon::after {
    content: '';
    display: block;
    width: 15px;
    height: 20px;
    background-image: url('/wp-content/uploads/2026/04/next-carousel-arrow.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
	
	
	.ui-datepicker td a,
.ui-datepicker td span {
    font-size: 20px;
}
	
	#appointment_times {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

	.prev-step, .submit-btn, .next-step {
		padding: 10px 15px 10px 15px !important;
	}

}

@media (max-width: 600px) {
	
	.ui-datepicker table tbody {    
    	gap: 8px;
	}
.ui-datepicker table tr   {  gap: 8px; }
	
	.ui-datepicker td a,
.ui-datepicker td span {
    font-size: 16px;
}

	#appointment_times {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}
	
	.time-btn {
    padding: 10px 10px !important;
    font-size: 16px !important;
}

	
	input[name="house_number"] {
   	 grid-column: 3 / span 2;
	}

	.form-row-2 {
		grid-template-columns: repeat(4, 1fr);
	}
}


@media (max-width: 375px) {
	
	
	#appointment_times {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
	
		.time-btn {
    padding: 7px 7px !important;
    font-size: 16px !important;
}
	
	.step-actions {
		flex-direction: column;
	}
}



/* ===========================
   CANCELLATION MODAL
=========================== */

/* .cancellation_modal {
/*     position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: 'Manrope', sans-serif;
}
 */
/* .cancellation-confirmation {
    background: #fff;
    border-radius: 24px;
    padding: 48px 52px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0; */
}

/* Logo */
/* .cancellation-confirmation .logo {
    margin-bottom: 32px;
}

.cancellation-confirmation .logo img {
    height: 40px;
    width: auto;
    display: block;
} */

/* Form layout */
/* #cancellation-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
} */

/* Titulli */
/* #cancellation-form h3 {
    margin: 0 0 16px;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.2;
} */

/* Teksti përshkrues */
/* #cancellation-form p {
    margin: 0 0 28px;
    font-size: 16px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
}

#cancellation-form p b {
    color: var(--text-dark);
    font-weight: 600;
} */

/* Turnstile — centrohet */
/* #cancellation-form .cf-turnstile {
    margin: 0 0 28px;
    display: flex;
    justify-content: center;
} */

/* Submit butoni — si btn-red */
/* #cancellation-form input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 15px 36px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    font-family: 'Manrope', sans-serif;
    letter-spacing: 0.01em;
    width: 100%;
}

#cancellation-form input[type="submit"]:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
}

#cancellation-form input[type="submit"]:active {
    transform: translateY(0); */
} */

/* Divider vizual mbi buton */
/* #cancellation-form input[type="submit"] {
    margin-top: 0;
} */

/* ===========================
   MOBILE
=========================== */
/* @media (max-width: 600px) {
    .cancellation-confirmation {
        padding: 36px 28px;
        border-radius: 20px;
    }

    #cancellation-form h3 {
        font-size: 22px;
    }

    #cancellation-form p {
        font-size: 15px;
    }
}

@media (max-width: 400px) {
    .cancellation-confirmation {
        padding: 28px 20px;
    }

    #cancellation-form h3 {
        font-size: 20px;
    }
} */


.time-btn.disabled:hover {    
	background: transparent !important;
    color: #757575 !important;
}
.time-btn.disabled  {
	cursor:not-allowed !important;
	opacity: .3;
}




.cancellation_modal {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;	
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center; 
}

.cancellation-confirmation {
	position: relative;
    background-color: #f1f1f1;
	border-radius: 24px;
    padding: 30px;
    max-width: 500px;
    width: 100%; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.modal-open {
    overflow: hidden; 
}

.cancellation-confirmation .logo {
	text-align: center;
}

.cancellation-confirmation .logo img {
	width: 100%;
	max-width: 271px;
}

.cancellation-confirmation {
	padding: 50px 20px !important;
}

#cancellation-form h3{
	margin: 50px 0 0 0;
}

#cancellation-form input[name="confirm_cancellation"] {
	margin-top: 10px;
}



#cancellation-form p{
	margin: 0 0 30px 0;
}

#cancellation-form {
	align-items: center;
	text-align: center;
	display: flex;
	flex-direction: column;
/* 	gap: 10px; */
	margin-bottom: 0;
}





.cancellation-close-btn {
 	position: absolute;
    top: 24px;
    right: 24px;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 0 !important;
    background: transparent !important;
    color: #333 !important;
    font-size: 18px !important;
}



.cancellation-success {
    text-align: center;
    margin-top: 30px;
}

.cancellation-success .success-icon {
    font-size: 48px;
    color: #2e7d32;
    margin-bottom: 10px;
}

.cancellation-success h3 {
    margin: 0 0 10px 0;
}

.cancellation-success p {
    margin: 0;
    color: #555;
}


@media(max-width: 767px) {
	.cancellation-confirmation .logo img {
	width: 100%;
	max-width: 215px;
}
	
	.cancellation-confirmation {
		width: 90%;
	}
}