/*--------------------------------------------------*/
/*-- Modern Enhanced Version - Keeps Classic Look --*/
/*--------------------------------------------------*/

/*-- browser reset --*/
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,button,input,textarea,p,blockquote,th,td,iframe {
margin:0;
padding:0
}
table {
border-collapse:collapse;
border-spacing:0
}
fieldset,button,img,iframe {
border:0
}
address,caption,cite,code,dfn,em,strong,th,var {
font-style:normal;
font-weight:normal
}
ol,ul {
list-style:none
}
caption,th {
text-align:left
}
h1,h2,h3,h4,h5,h6 {
font-size:100%;
font-weight:normal
}

* {
    box-sizing: border-box;
}

p {
padding:.6em 0;
line-height: 1.6;
}
.first {
padding-top:0
}

sub, sup {vertical-align:baseline; position:relative; font-size:80%}
sub {bottom:-.6em}
sup {top:-.6em}

a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    text-decoration: underline;
    color:#7f192f;
}

body {
background: linear-gradient(135deg, #E6E6E6 0%, #F5F5F5 100%);
text-align:center;
font: 15px/1.6 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
color:#333;
min-height: 100vh;
}

/*--------------------------------------------------*/
/*-- header --*/
#header {
background:#fff;
text-align:center;
padding:1.5em;
margin:1em 0 0;
border-top:2px solid #222;
border-bottom:2px solid #222;
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.title {
font-size:2em;
font-weight:700;
padding-bottom:.4em;
letter-spacing: -0.5px;
}
.title a {
    color:#333;
    text-decoration: none;
}
.title a:hover {
    color:#555;
    text-decoration: none;
}

/*--------------------------------------------------*/
/*-- content --*/
#content {
max-width:1125px;
width: 95%;
margin:0 auto;
text-align:left;
background:#fff;
border:1px solid #ddd;
border-radius:8px;
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
#inside-content {
padding:2em;
}

@media (max-width: 768px) {
    #inside-content {
        padding: 1em;
    }
}

/*--------------------------------------------------*/
/*-- footer --*/
#footer {
background:#fff;
text-align:center;
padding:1.5em;
margin:1.5em 0;
border-top:2px solid #222;
border-bottom:2px solid #222;
font-size:.9em;
box-shadow: 0 -2px 4px rgba(0,0,0,0.05);
}
#footer div {
font-size:1.1em;
margin-bottom:.6em
}
#footer p {
padding:0.3em 0;
}
#footer .order-now {
font-size:1.3em
}

/*--------------------------------------------------*/
/*-- headers --*/
h1 {
font-size:1.6em;
font-weight:700;
margin-bottom: 0.5em;
color: #222;
}
h2 {
font-size:1.4em;
font-weight: 600;
margin-bottom: 0.4em;
color: #222;
}
h3 {
font-size:1.2em;
font-weight:700;
margin:.6em 0 .3em;
color: #333;
}
h4 {
padding:0 0 .5em 0;
font-weight:700;
font-size: 1.1em;
}

/*--------------------------------------------------*/
/*-- floats --*/
.left {float:left}
.right {float:right}
.clear {clear:both}

/*--------------------------------------------------*/
/*-- nav --*/
#nav-rap {
position:relative;
background:#fff;
max-width:480px;
width: 95%;
margin:-1px auto 1em;
padding:.6em 1em;
border:1px solid #ddd;
border-top:none;
border-bottom-left-radius:8px;
border-bottom-right-radius:8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.nav li {
display:inline;
padding-left:1em;
}
.nav li:first-child {
padding-left:0;
}
.nav li a {
    transition: all 0.2s ease;
    white-space: nowrap;
}

/*-------------------------------------------*/
/*-- Forms - Modern styling --*/
#form-wrap {
max-width:420px;
width: 95%;
margin:0 auto;
padding-top:1em;
text-align:left
}

fieldset {
border:1px #ddd solid;
padding:1em;
border-radius: 6px;
background: #fafafa;
}

legend {
font-size:1.2em;
font-weight:700;
padding:.3em .6em;
border:1px #ddd solid;
border-radius: 4px;
background: white;
}

.form-row {
margin-bottom:8px;
padding:4px 0;
width:100%;
overflow:hidden;
position:relative;
}

label {
display:block;
font-weight:600;
float:left;
width:120px;
margin-left:5px;
line-height:36px;
color: #333;
}

.special {
display:none
}

/* Modern input styling */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select,
input.text-input,
.text-area {
    background: #fff;
    border: 2px solid #d0d0d0;
    padding: 10px 12px;
    width: 100%;
    max-width: 300px;
    font-size: 14px;
    font-family: 'Ubuntu', sans-serif;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: #333;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus,
input.text-input:focus,
.text-area:focus {
    outline: none;
    border-color: #7f192f;
    box-shadow: 0 0 0 3px rgba(127, 25, 47, 0.1);
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
input[type="number"]:hover,
select:hover {
    border-color: #999;
}

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

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

input.text-input.default.active,
.text-area.default.active {
color: #999;
font-style: italic;
}

/* Modern button styling */
.button-row {
margin-bottom:0;
padding:8px 5px;
}

button,
input[type="submit"],
.submitbutton {
    font-size:1.1em;
    padding:.7em 1.8em;
    border: 2px solid #222;
    background: linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 100%);
    cursor:pointer;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: #222;
    font-family: 'Ubuntu', sans-serif;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

button:hover,
input[type="submit"]:hover,
.submitbutton:hover {
    background: linear-gradient(180deg, #fff 0%, #f5f5f5 100%);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-1px);
    border-color: #7f192f;
}

button:active,
input[type="submit"]:active,
.submitbutton:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

button:disabled,
input[type="submit"]:disabled,
.submitbutton:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/*error msg box*/
.message {
border-right:2px #ddd solid;
border-bottom:2px #ddd solid;
border-left:2px #ddd solid;
display:none;
padding:.8em;
border-top-left-radius:0;
border-top-right-radius:0;
border-bottom-left-radius:8px;
border-bottom-right-radius:8px;
background: #fffbf0;
}
.message ul li {
background:url(../img/bullet.png) no-repeat center left;
padding-left:1.5em;
margin:.6em 0;
line-height: 1.5;
}

.errormsg {
padding: 1.5em;
border: 3px solid #cc0000;
background: #ffe6e6;
color: #cc0000;
border-radius: 8px;
font-weight: 500;
font-size: 1.1em;
margin: 1.5em 0;
box-shadow: 0 4px 12px rgba(204, 0, 0, 0.2);
}

.errormsg::before {
content: "⚠ ";
font-size: 1.5em;
margin-right: 0.3em;
}

.errormsg ul {
margin: 0.8em 0 0 0;
padding-left: 1.5em;
list-style: none;
}

.errormsg ul li {
padding: 0.4em 0;
font-weight: 600;
}

.errormsg ul li::before {
content: "• ";
color: #cc0000;
font-weight: bold;
font-size: 1.2em;
margin-right: 0.3em;
}

#new-book {
text-align:center;
border: 2px solid #ddd;
padding:1em;
display: inline-block;
margin: 1em auto;
border-radius: 8px;
background: linear-gradient(135deg, #fff9e6 0%, #fff 100%);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
}

#new-book:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Table improvements */
table {
    width: 100%;
    margin: 1em 0;
}

th {
    background: #f5f5f5;
    padding: 12px;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
    text-align: left;
}

td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

tr:hover {
    background: #fafafa;
}

/* Responsive improvements */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    #header {
        padding: 1em;
    }

    .title {
        font-size: 1.5em;
    }

    #content {
        width: 98%;
        border-radius: 4px;
    }

    label {
        width: 100%;
        float: none;
        margin-bottom: 0.3em;
        line-height: 1.4;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    textarea,
    select {
        max-width: 100%;
    }

    .nav li {
        display: block;
        padding: 0.3em 0;
    }
}

/* Accessibility improvements */
:focus-visible {
    outline: 2px solid #7f192f;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    body {
        background: white;
    }

    #header, #footer, #nav-rap {
        border: none;
        box-shadow: none;
    }

    #content {
        border: none;
        box-shadow: none;
    }
}
