/* =========================
Evan's Smart Fix - style.css
========================= */

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

html {
height: 100%;
scroll-behavior: smooth;
}

body {
min-height: 100vh;
width: 100%;
display: flex;
flex-direction: column;
font-family: Arial, sans-serif;
background: #f4f4f6;
color: #333;
line-height: 1.6;
}

/* =========================
HEADER
========================= */

header {
width: 100%;
background: #0057b8;
color: #fff;
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 40px;
flex-wrap: wrap;
position: sticky;
top: 0;
z-index: 1000;
box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
}

.header-left {
display: flex;
align-items: center;
gap: 20px;
}

.logo {
width: 70px;
height: 70px;
object-fit: contain;
transition: .3s;
}

.logo:hover {
transform: rotate(-4deg) scale(1.05);
}

header h1 {
margin: 0;
}

header p {
margin-top: 5px;
font-size: 15px;
}

/* =========================
NAVIGATION
========================= */

nav {
display: flex;
gap: 20px;
align-items: center;
}

nav a {
color: #fff;
text-decoration: none;
font-weight: bold;
transition: .3s ease;
}

nav a:hover {
color: #dcecff;
transform: translateY(-2px);
}

.cart-link {
background: #fff;
color: #0057b8 !important;
padding: 8px 14px;
border-radius: 25px;
}

#cartCount {
background: #d60000;
color: #fff;
border-radius: 50%;
padding: 2px 7px;
font-size: 12px;
}

/* =========================
HERO
========================= */

.hero {
flex: 1;
padding: 80px 8%;
}

.hero-text {
max-width: 550px;
margin: auto;
text-align: left;
}

.hero-text h2 {
color: #0057b8;
font-size: 52px;
line-height: 1.15;
margin-bottom: 20px;
}

.hero-text p {
color: #666;
font-size: 18px;
line-height: 1.8;
margin-bottom: 30px;
}

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

.button {
display: inline-block;
margin-top: 20px;
padding: 15px 30px;
background: #0057b8;
color: #fff;
text-decoration: none;
border-radius: 10px;
font-size: 17px;
font-weight: bold;
transition: .3s;
}

.button:hover {
background: #004494;
transform: translateY(-3px);
box-shadow: 0 12px 30px rgba(0, 87, 184, .25);
}

/* =========================
REPAIR SECTION
========================= */

.repair-section {
display: grid;
grid-template-columns: 1fr 1fr;
align-items: center;
gap: 70px;
max-width: 1300px;
margin: 50px auto;
padding: 20px;
}

.repair-image {
display: flex;
justify-content: center;
}

.repair-image img {
width: 100%;
max-width: 550px;
height: auto;
border-radius: 18px;
box-shadow: 0 20px 45px rgba(0, 0, 0, .18);
}

/* =========================
BRANDS / CARDS
========================= */

.brands,
.samsung-series {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 30px;
padding: 40px 8% 80px;
max-width: 1200px;
margin: auto;
}

.model {
background: #fff;
border-radius: 15px;
padding: 30px;
text-align: center;
border: 1px solid rgba(0, 87, 184, .08);
box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
transition: .35s;
}

.model:hover {
transform: translateY(-8px);
box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
}

.model img {
max-width: 100%;
margin-bottom: 15px;
}

/* =========================
SEARCH
========================= */

.search-bar {
display: flex;
max-width: 500px;
margin: 30px auto;
}

.search-bar input {
flex: 1;
padding: 12px;
border: 1px solid #ccc;
border-radius: 8px 0 0 8px;
}

.search-bar button {
padding: 12px 18px;
border: none;
background: #ff9900;
color: #fff;
border-radius: 0 8px 8px 0;
}

/* =========================
TESTIMONIALS
========================= */

.testimonials {
width: 100%;
max-width: 1200px;
margin: 40px auto 0;
background: #fff;
border-radius: 18px;
padding: 30px;
box-shadow: 0 15px 40px rgba(0, 0, 0, .08);
}

/* =========================
FOOTER
========================= */

footer {
background: #222;
color: #fff;
text-align: center;
padding: 25px;
margin-top: 0;
width: 100%;
font-size: 15px;
}

/* =========================
CHECKOUT LAYOUT
========================= */

.checkout-layout {
display: flex;
flex-direction: row;
align-items: flex-start;
gap: 30px;
width: 100%;
max-width: 1100px;
margin: 0 auto;
padding: 20px;
}

.checkout-main {
flex: 2 1 0;
min-width: 0;
}

.checkout-sidebar {
flex: 1 1 300px;
min-width: 260px;
background: #fff;
border: 1px solid #ddd;
border-radius: 10px;
padding: 20px;
height: fit-content;
position: sticky;
top: 20px;
}

/* =========================
CHECKOUT FORM
========================= */

.checkout-form-container {
width: 100%;
display: block;
}

.checkout-form {
background: #fff;
border: 1px solid #ddd;
border-radius: 10px;
padding: 20px;
}

/* =========================
CHECKOUT STEPS
========================= */

.steps {
width: 100%;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: stretch;
justify-content: space-between;
gap: 10px;
margin-bottom: 25px;
}

.steps .step {
flex: 1 1 0;
width: auto;
display: block;
text-align: center;
padding: 10px;
background: #eee;
border-radius: 6px;
font-size: 13px;
}

.steps .step.active {
background: #0057b8;
color: #fff;
}

/* =========================
CHECKOUT FIELDS
========================= */

.form-group {
margin-bottom: 15px;
}

.form-group label {
display: block;
font-weight: bold;
margin-bottom: 5px;
}

.checkout-form input {
width: 100%;
padding: 10px;
border: 1px solid #aaa;
border-radius: 6px;
}

/* =========================
CHECKOUT BUTTON
========================= */

.confirm-btn {
width: 100%;
background: #0057b8;
color: #fff;
border: none;
padding: 12px;
border-radius: 6px;
cursor: pointer;
font-weight: bold;
}

.confirm-btn:hover {
background: #004494;
}

/* =========================
CHECKOUT SIDEBAR
========================= */

.checkout-sidebar h3 {
margin-bottom: 10px;
}

.checkout-sidebar hr {
margin: 20px 0;
border: none;
border-top: 1px solid #ddd;
}

#totalPrice {
font-size: 20px;
color: #0057b8;
}

/* =========================
SMOOTH ANIMATIONS
========================= */

.button,
.model,
nav a,
.cart-link {
transition: .3s ease;
}
/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {

    header {
        padding: 20px;
    }

    .repair-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text {
        text-align: center;
        margin: auto;
    }

    .hero-text h2 {
        font-size: 38px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .repair-image img {
        max-width: 350px;
    }

    .brands,
    .samsung-series {
        grid-template-columns: 1fr;
    }

    
/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 768px) {

    header {
        flex-direction: column;
        text-align: center;
    }

    .header-left {
        flex-direction: column;
    }

    nav {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-text h2 {
        font-size: 32px;
    }

    .repair-image img {
        width: 100%;
        max-width: 350px;
    }

    .brands,
    .samsung-series {
        padding: 20px;
    }

    .steps {
        gap: 5px;
    }

    .steps .step {
        font-size: 11px;
        padding: 8px 4px;
    }
}
}
/* =========================
   MOBILE CHECKOUT
========================= */

@media (max-width: 700px) {

    .checkout-layout {
        flex-direction: column;
    }

    .checkout-main,
    .checkout-sidebar {
        width: 100%;
        flex: none;
    }

    .checkout-sidebar {
        position: static;
        min-width: 0;
    }
}
/* =========================
   BOOKING CONFIRMATION
========================= */

.confirmation-container {
    background: #fff;
    border-radius: 18px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .08);
    border: 1px solid #e1e1e1;
}

.confirmation-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: #0057b8;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    font-weight: bold;
}

.confirmation-container h2 {
    color: #0057b8;
    font-size: 32px;
    margin-bottom: 10px;
}

.confirmation-message {
    color: #666;
    margin-bottom: 30px;
}

.booking-reference-box {
    background: #f4f7fb;
    border: 1px solid #dce7f5;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 25px;
}

.booking-reference-box span {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.booking-reference-box strong {
    display: block;
    color: #0057b8;
    font-size: 24px;
    letter-spacing: 1px;
}

.confirmation-details {
    text-align: left;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.confirmation-details h3 {
    margin-bottom: 15px;
    color: #333;
}

.confirmation-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

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

.confirmation-row span {
    color: #666;
}

.confirmation-row strong {
    text-align: right;
}

.total-row {
    font-size: 18px;
    padding-top: 18px;
}

.total-row strong {
    color: #0057b8;
}

.next-steps {
    text-align: left;
    margin-bottom: 25px;
}

.next-steps h3 {
    margin-bottom: 15px;
}

.next-step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.next-step span {
    min-width: 30px;
    height: 30px;
    background: #0057b8;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.next-step p {
    margin: 0;
}

.email-notice {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}


/* =========================
   CONFIRMATION MOBILE
========================= */

@media (max-width: 600px) {

    .confirmation-container {
        padding: 25px 18px;
    }

    .confirmation-container h2 {
        font-size: 27px;
    }

    .confirmation-row {
        flex-direction: column;
        gap: 3px;
    }

    .confirmation-row strong {
        text-align: left;
    }

    .booking-reference-box strong {
        font-size: 20px;
    }

}
/* =========================================================
IPHONE MODEL PAGE
EVAN'S SMART FIX
========================================================= */

body {
margin: 0;
min-height: 100vh;
font-family: Arial, Helvetica, sans-serif;
background: #f4f7fb;
color: #172033;
display: flex;
flex-direction: column;
}

/* =========================================================
HEADER
========================================================= */

header {
background: linear-gradient(135deg, #0057b8, #003f88);
color: white;
padding: 20px 40px;
display: flex;
align-items: center;
gap: 25px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
position: relative;
z-index: 10;
}

.logo {
width: 75px;
height: 75px;
object-fit: contain;
}

header h1 {
margin: 0;
font-size: 28px;
font-weight: 700;
letter-spacing: 0.3px;
}

/* =========================================================
NAVIGATION
========================================================= */

.nav-bar {
margin-left: auto;
display: flex;
align-items: center;
gap: 10px;
}

.nav-bar a {
color: white;
text-decoration: none;
font-weight: 600;
padding: 10px 15px;
border-radius: 8px;
transition: 0.2s ease;
}

.nav-bar a:hover {
background: rgba(255, 255, 255, 0.15);
transform: translateY(-1px);
}

.cart-link {
background: rgba(255, 255, 255, 0.12);
}

/* =========================================================
CART COUNT
========================================================= */

#cartCount {
display: inline-flex;
align-items: center;
justify-content: center;


min-width: 20px;
height: 20px;

padding: 2px 5px;

margin-left: 5px;

background: #ff3b30;
color: white;

border-radius: 50%;

font-size: 12px;
font-weight: bold;


}

/* =========================================================
FORM CONTAINER
========================================================= */

form {
width: min(500px, calc(100% - 40px));

margin: 60px auto;

padding: 35px;

background: white;

border-radius: 18px;

box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);

border: 1px solid #e5eaf1;

box-sizing: border-box;


}

/* =========================================================
FORM TITLE EFFECT
========================================================= */

form::before {


display: block;

font-size: 22px;
font-weight: 700;

color: #0057b8;

margin-bottom: 25px;


}

/* =========================================================
INPUTS
========================================================= */

form input {
width: 100%;


box-sizing: border-box;

padding: 14px 16px;

margin-bottom: 16px;

border: 1px solid #d6dce5;

border-radius: 10px;

background: #f9fafc;

color: #172033;

font-size: 15px;

outline: none;

transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;


}

form input::placeholder {
color: #8a94a6;
}

form input:hover {
border-color: #b8c2d1;
}

form input:focus {
border-color: #0057b8;


background: white;

box-shadow:
    0 0 0 3px rgba(0, 87, 184, 0.12);


}

/* =========================================================
SUBMIT BUTTON
========================================================= */

form button {
width: 100%;


border: none;

padding: 15px 20px;

margin-top: 5px;

border-radius: 10px;

background: linear-gradient(
    135deg,
    #0057b8,
    #0074d9
);

color: white;

font-size: 16px;
font-weight: 700;

cursor: pointer;

box-shadow:
    0 5px 12px rgba(0, 87, 184, 0.25);

transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;


}

form button:hover {
transform: translateY(-2px);


box-shadow:
    0 8px 18px rgba(0, 87, 184, 0.3);

background: linear-gradient(
    135deg,
    #004a9f,
    #006bc5
);


}

form button:active {
transform: translateY(0);
}

/* =========================================================
FOOTER
========================================================= */

footer {
margin-top: auto;


padding: 25px 20px;

text-align: center;

background: #172033;

color: #cbd3df;

font-size: 14px;


}

footer p {
margin: 0;
}

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

@media (max-width: 700px) {


header {
    padding: 18px 20px;

    flex-wrap: wrap;

    justify-content: center;

    text-align: center;
}


.logo {
    width: 65px;
    height: 65px;
}


header h1 {
    width: 100%;

    font-size: 23px;

    order: 2;
}


.nav-bar {
    width: 100%;

    margin-left: 0;

    justify-content: center;

    flex-wrap: wrap;

    order: 3;
}


.nav-bar a {
    font-size: 14px;

    padding: 9px 12px;
}


form {
    width: calc(100% - 30px);

    margin: 35px auto;

    padding: 25px 20px;

    border-radius: 15px;
}


form::before {
    font-size: 20px;
}


}

/* =========================================================
SMALL PHONES
========================================================= */

@media (max-width: 400px) {


header h1 {
    font-size: 21px;
}


.nav-bar {
    gap: 3px;
}


.nav-bar a {
    padding: 8px 9px;

    font-size: 13px;
}


form {
    padding: 22px 16px;
}

}
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

form input,
form button {
    width: 300px;
    box-sizing: border-box;
}
form {
    width: 400px;
    margin: 40px auto;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

form h2 {
    margin: 0;
    padding: 20px;
    background: #0057b8;
    color: white;
    text-align: center;
}

form input {
    display: block;
    width: calc(100% - 50px);
    margin: 15px 25px;
    padding: 12px;
    box-sizing: border-box;
}

form button {
    margin: 10px 25px 25px;
}
/* =========================
   CART BUTTON FIX
========================= */

.nav-bar .cart-link {
    background: #ffffff;
    color: #0057b8 !important;
    padding: 10px 15px;
    border-radius: 25px;
    font-weight: 700;
}

.nav-bar .cart-link:hover {
    background: #e8f1ff;
    color: #0057b8 !important;
}
/* =========================
   BOOKING CONFIRMATION POPUP
========================= */

.confirmation-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;

    align-items: center;
    justify-content: center;

    padding: 15px;
}

.confirmation-popup {
    width: min(400px, 90%);
    max-height: 90vh;
    overflow-y: auto;

    background: white;
    border-radius: 16px;

    padding: 28px;

    text-align: center;

    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);

    animation: popupIn 0.3s ease;
}

@keyframes popupIn {

    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

}

.success-icon {
    width: 60px;
    height: 60px;

    margin: 0 auto 15px;

    background: #0057b8;
    color: white;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 32px;
    font-weight: bold;
}

.confirmation-popup h2 {
    color: #0057b8;

    margin-bottom: 6px;

    font-size: 24px;
}

.confirmation-popup > p {
    color: #666;

    margin: 8px 0 14px;

    font-size: 14px;
}

.reference-box {
    background: #f4f7fb;

    border: 1px solid #dce7f5;

    border-radius: 10px;

    padding: 13px;

    margin: 14px 0;
}

.reference-box span {
    display: block;

    color: #666;

    font-size: 11px;

    margin-bottom: 3px;
}

.reference-box strong {
    display: block;

    color: #0057b8;

    font-size: 20px;

    letter-spacing: 1px;
}

.confirmation-details {
    text-align: left;

    background: #fafafa;

    border-radius: 10px;

    padding: 13px;

    margin-top: 14px;
}

.confirmation-details p {
    margin: 6px 0;

    color: #333;

    font-size: 13px;
}

.confirmation-details strong {
    color: #0057b8;
}

.close-confirmation {
    width: 100%;

    border: none;

    padding: 12px;

    margin-top: 14px;

    border-radius: 9px;

    background: #0057b8;

    color: white;

    font-size: 15px;

    font-weight: bold;

    cursor: pointer;
}

.close-confirmation:hover {
    background: #004494;
}


/* SMALL SCREENS */

@media (max-height: 700px) {

    .confirmation-popup {
        padding: 20px;
    }

    .success-icon {
        width: 50px;
        height: 50px;

        font-size: 27px;

        margin-bottom: 10px;
    }

    .confirmation-popup h2 {
        font-size: 21px;
    }

    .reference-box {
        padding: 10px;

        margin: 10px 0;
    }

    .confirmation-details {
        padding: 10px;

        margin-top: 10px;
    }

}

/* =========================================================
   BASKET BUTTON
========================================================= */

nav a[href="cart.html"] {
    background: white;
    color: #000;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
}

nav a[href="cart.html"]:hover {
    background: #f2f2f2;
    color: #000;
}
/* Fix confirmation popup text colour */
.confirmation-container h2,
.confirmation-container h3,
.confirmation-container p,
.confirmation-container span,
.confirmation-container strong {
    color: #000000 !important;
}