/*
Theme Name: HCP Portal Theme
Theme URI: 
Author: Your Name
Author URI: 
Description: A secure, lightweight theme for the HCP Portal
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hcp-portal-theme
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 40px;
    margin-bottom: 0;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #605A53;
}

h1 {
  font-size: 52px;
  line-height: 1;
  color: #362E24 !important;
  font-weight: 600;
  display: inline-block;
  margin: auto;
    margin-top: auto;
  margin-top: -80px;
  z-index: 10000;
  background-color: #fff;
  padding: 80px;
  border-radius: 50px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.h-title-line {
  max-width: 100px;
  margin: auto;
  margin-bottom: 40px;
}

/* Header Styles */
.header {
    margin: -40px -40px 40px -40px;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    max-height: 34px;
    width: auto;
}

.header-navigation a {
  margin-left: 20px;
}

.return-link {
    color: #605A53;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.return-link:hover {
    color: #666;
}

.header-image-container {
  margin: -40px 0px 40px 0px;
  background-color: #fbf8f6;
  overflow: hidden;
  text-align: right;
  border-radius: 50px;
  padding-bottom: 0px;
  line-height: 0;
}

.header-image {
    border-radius: 50px;
    max-width: 100%;
    height: auto;
}

/* Main Content Styles */
.main-content {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Footer Styles */
.footer {
    margin: 0px -40px 0 -40px;
    font-size: 13px;
    font-weight: 400;
}

.footer-top {
    background-color: #F7F5F2;
    height: 13px;
    margin-bottom: 90px;
}

.footer-top-inner {
    max-width: 1140px;
    margin: 0 auto;
    position: relative;
    height: 100%;
}

.footer-top-inner::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 33.33%;
    height: 100%;
    background-color: #8A532C;
}

.footer-logo-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px;
}

.footer-logo {
    max-height: 60px;
    width: auto;
}

.legal-footer{
  text-align: center;
  padding: 10px 0;
  font-size: 10px !important;
  color: #666;
  margin-top: 20px;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right:20px;
  margin-top: 40px;
  margin-bottom: 50px;
}

.footer-content {
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
}

.footer-column {
    width: 33.33%;
    padding: 0 15px;
}

.footer-column:first-child {
    padding-left: 0;
}

.footer-column:last-child {
    padding-right: 0;
    text-align: right;
}

.footer-links a {
    color: #8A532C;
    text-decoration: none;
    margin-right: 20px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #666;
}

.copyright {
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
}

.contact-info {
    font-style: normal;
}

.contact-info a {
    color: #8A532C;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #666;
}

.footer-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.footer-images a {
    display: block;
    transition: opacity 0.3s ease;
}

.footer-images a:hover {
    opacity: 0.8;
}

.footer-images img {
    display: block;
    max-width: 100%;
    height: auto;
}


/*** HCP PORTAL ***/

#hcp-registration-form input[type="submit"], .hcp-download-info a, .hcp-profile .button, .hcp-logout a, .wp-block-button__link {
  background: #F7F5F2 !important;
  border-radius: 25px !important;
  color: #8A532C !important;
  padding: 12px 20px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  width: 100% !important;
  margin-top: 20px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  min-height: 20px !important;
  line-height: 1 !important;
  text-align: center;
}

#hcp-registration-form input[type="submit"]:hover, .hcp-download-info a:hover, .hcp-profile .button:hover, .hcp-logout a:hover, .wp-block-button__link:hover {
    background-color: #8A532C !important;
    color: #fff !important;
}

.hcp-logout a {
    display: block;
}

.hcp-portal-registration-form-container .g-recaptcha {
    margin-top:40px;
}

#hcp-registration-form input[type="checkbox"], .hcp-profile input[type="checkbox"] {
    height: 20px;
    width: 20px;
    margin-bottom: 10px;
    margin-right: 5px;
    vertical-align: middle;
    margin-top: 5px;
}

#hcp-registration-form label[for="haematology"],
#hcp-registration-form label[for="oncology"] {
    display: inline;
    margin-left: 5px;
    font-weight: normal;
    font-size: 90%;
}

.terms-and-conditions-text label {
  color: #8A532C;
  font-weight: 400 !important;
}

#hcp-registration-form label[for="terms_conditions"] {
    display: inline;
    font-weight: bold !important;
    color: #605A53;
}

input#terms_conditions {
  margin-top: 10px !important;
}


#hcp-registration-form small {
    display: block;
    color: #666;
    font-style: italic;
    margin-top: 5px;
}

.area-interest-error {
    background-color: #ffffff;
    border: 1px solid #d93025;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    color: #d93025;
    font-size: 12px;
    margin-top: 5px;
    padding: 8px 12px;
    position: relative;
    max-width: 300px;
    z-index: 1000;
}

.area-interest-error::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #d93025;
}

.area-interest-error::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 21px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #ffffff;
}

.hcp-error-message {
    background-color: #ffebee;
    border: 1px solid #f44336;
    color: #c62828;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.hcp-success-message {
    background-color: #e8f5e8;
    border: 1px solid #4caf50;
    color: #2e7d32;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
}

#hcp-registration-form label a, .hcp-profile label a {
    color: #8A532C;
}

.align-checkbox-box input[type="checkbox"] {
    float: left;
}

.align-checkbox-box label {
    margin-left: 35px;
    position: relative;
    display: block;
}

.page-reference-code {
    padding: 10px 0;
    font-size: 10px;
    color: #666;
    margin-top: 100px;
    margin-bottom: -40px;
    text-align: center;
}

.hcp-profile label {
    font-weight: 400;
    display: block;
    margin-bottom: 5px;
    margin-top: 10px;
}

.hcp-profile form {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.hcp-profile h2 {
    margin-bottom: 20px;
    color: #23282d;
}
.hcp-profile span:not(.description) {
    display: block;
    padding: 8px 0;
    color: #666;
}
.hcp-profile input[type="email"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.hcp-profile input[type="submit"] {
    background-color: #0085ba;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}
.hcp-profile input[type="submit"]:hover {
    background-color: #006799;
}
.hcp-profile input[type="checkbox"] {
    margin-right: 5px;
}
.hcp-profile .checkbox-label {
    font-weight: normal;
}

/* Notice Animations */
.notice {
    animation: slideIn 0.3s ease-in-out;
}
@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.home-col1, .home-col2 {
    background-color: #F7F5F2;
    border-radius:50px;
    padding: 20px;
}

.home-col1 img, .home-col2 img {
        border-radius:50px;
}

.home-col1 h2 a, .home-col2 h2 a {
  color: #8A532C;
    text-decoration:unset;
}

.home-col1 h2, .home-col2 h2 {
    padding-left:20px;
    padding-top:20px;
}

.home-col1 h2, .home-col2 h2 {
    margin-bottom: 50px;
}

.home-portal-sections-choice h2 {
    margin-bottom: 20px;
}

.home-col-1-1, .home-col-1-2, .home-col-2-1, .home-col-2-2 {
    background-color:#ebe4d7;
    border-radius:25px;
    padding: 20px;
}

.home-col1 h3, .home-col2 h3 {
    min-height:60px;
    margin-bottom:30px;
}

.portal-group-choice {
    margin-top: 40px;
}

.portal-choice-column {
  background-color: #FFF;
  border-radius: 50px;
  padding: 50px;
  background: #FFF;
  border: 1px solid #8A532C;
  position: relative;
}

.portal-choice-column h2 {
        margin-bottom:20px;
}

.hcp-portal-page p, .hcp-portal-page h3, .hcp-portal-page h4 {
    font-family: 'Roboto', sans-serif;
}

h3 {
  line-height: 22px;
}

.hcp-popup-content {
  font-family: 'Roboto';
}

.portal-product-logo {
  margin-bottom: 20px;
  z-index: 10000;
  position: absolute;
  border-radius: 10px;
  top: -45px;
  left: calc(50% - 90px);
}

.page-id-2 .return-link:nth-child(1), .page-id-2 .return-link:nth-child(3), .page-id-2 .return-link:nth-child(4), .page-id-43 .return-link:nth-child(1), .page-id-43 .return-link:nth-child(3), .page-id-43 .return-link:nth-child(4) {
  display: none;
}

.portal-product-logo img {
  border-radius: 10px;
}

/* Responsive Styles */
@media screen and (max-width: 782px) {
    .hcp-profile,
    #hcp-registration-form {
        padding: 10px;
    }
    .member-actions {
        flex-direction: column;
        gap: 10px;
    }
    .member-actions form {
        width: 100%;
    }
    .member-actions .button {
        width: 100%;
        text-align: center;
    }
}


@media (max-width: 768px) {

    .main-content {
        padding: 0;
    }

    body {
        margin: 20px;
    }

    h1 {
        font-size: 32px !important;
    }
    
    h2 {
        font-size: 20px !important;
    }
    
    h3 {
        font-size: 22px !important;
    }
    
    h4 {
        font-size: 19px !important;
    }
    
    body, p {
        font-size: 15px !important;     
    }

    h1 {
      margin-top: -10px;
      padding: 30px;
      border-radius: 30px;
    }

    .header {
        margin: -20px -20px 20px -20px;
        padding: 10px 20px;
        flex-direction: row;
        text-align: center;
    }

    .header-logo {
        max-width: 150px;
    }

    .header-navigation a {
        margin-left: 5px;
    }

    .return-link {
        font-size: 11px;
    }

    .header-image-container {
        margin: -20px 0px 40px 0px;
     }

    .footer-top {
        margin-bottom: 50px;
    }

    .legal-footer p {
      padding-left: 20px;
      padding-right: 20px;
      margin-bottom: 50px;
      font-size: 10px !important
    }

    .footer-top-inner::before {
        width: 100%;
    }

    .footer-logo-container, .footer-content {
        margin: 20px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-column {
        width: 100%;
        padding: 15px 0;
        text-align: left;
    }

    .footer-images {
        align-items: flex-start;
    }

    .footer img {
      max-width: 280px;
    }

    #hcp-registration-form label {
      font-size: 14px;
    }

}